Commit 70642bcb authored by Ben Walker's avatar Ben Walker
Browse files

rocksdb: Use new threading API calls



Change-Id: I6ed98605512b675e1b6bde5b9644d6160802b893
Signed-off-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-on: https://review.gerrithub.io/436757


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
parent 5d81ab16
Loading
Loading
Loading
Loading
+1 −11
Original line number Diff line number Diff line
@@ -577,20 +577,10 @@ public:
	}
};

static void
_spdk_send_msg(__attribute__((unused)) spdk_thread_fn fn,
	       __attribute__((unused)) void *ctx,
	       __attribute__((unused)) void *thread_ctx)
{
	/* Not supported */
	assert(false);
}

void SpdkInitializeThread(void)
{
	if (g_fs != NULL) {
		/* TODO: Add an event lib call to dynamically register a thread */
		spdk_allocate_thread(_spdk_send_msg, NULL, NULL, NULL, "spdk_rocksdb");
		spdk_allocate_thread(NULL, NULL, NULL, NULL, "spdk_rocksdb");
		g_sync_args.channel = spdk_fs_alloc_io_channel_sync(g_fs);
	}
}