rocksdb: Use new threading API calls
Change-Id: I6ed98605512b675e1b6bde5b9644d6160802b893 Signed-off-by: Ben Walker <benjamin.walker@intel.com> Reviewed-on: https://review.gerrithub.io/436757 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
This commit is contained in:
parent
5d81ab16d4
commit
70642bcbe8
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user