diff options
author | Barak Sason Rofman <[email protected]> | 2020-09-24 12:34:23 +0300 |
---|---|---|
committer | Barak Sason Rofman <[email protected]> | 2020-09-24 16:29:56 +0300 |
commit | d7ce8331a146aff84f8d222bc93c7af610707540 (patch) | |
tree | f7cf6b5d30897e5862347a18c7dcecaf5050d86f | |
parent | 3b8ee834a3b58780721e37767a274e7c9730eba0 (diff) | |
download | glusterfs-d7ce8331a146aff84f8d222bc93c7af610707540.tar.gz glusterfs-d7ce8331a146aff84f8d222bc93c7af610707540.tar.xz glusterfs-d7ce8331a146aff84f8d222bc93c7af610707540.zip |
DHT - fixing a bug in thread creation
The 3rd argument of gf_thread_create is a pointer to a method, however
in this case, a pointer to a pointer to a method is passed (2 levels of
indirection instead of 1).
Change-Id: Ic2d4ea75aa54c6bc85a80bd0277a0efa5e5814ad
updates: #1002
Signed-off-by: Barak Sason Rofman <[email protected]>
-rw-r--r-- | xlators/cluster/dht/src/dht-rebalance.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/cluster/dht/src/dht-rebalance.c b/xlators/cluster/dht/src/dht-rebalance.c index 358e1c6d53..e901947d0f 100644 --- a/xlators/cluster/dht/src/dht-rebalance.c +++ b/xlators/cluster/dht/src/dht-rebalance.c @@ -4252,7 +4252,7 @@ gf_defrag_estimates_init(xlator_t *this, loc_t *loc, pthread_t *filecnt_thread) goto out; } - ret = gf_thread_create(filecnt_thread, NULL, &dht_file_counter_thread, + ret = gf_thread_create(filecnt_thread, NULL, dht_file_counter_thread, (void *)defrag, "dhtfcnt"); if (ret) { @@ -4309,7 +4309,7 @@ gf_defrag_parallel_migration_init(xlator_t *this, gf_defrag_info_t *defrag, /*Spawn Threads Here*/ while (index < thread_spawn_count) { - ret = gf_thread_create(&(tid[index]), NULL, &gf_defrag_task, + ret = gf_thread_create(&(tid[index]), NULL, gf_defrag_task, (void *)defrag, "dhtmig%d", (index + 1) & 0x3ff); if (ret != 0) { gf_msg("DHT", GF_LOG_ERROR, ret, 0, "Thread[%d] creation failed. ", |