summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs')
-rw-r--r--libglusterfs/src/timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfs/src/timer.c b/libglusterfs/src/timer.c
index 3e39231e0..433eeb7df 100644
--- a/libglusterfs/src/timer.c
+++ b/libglusterfs/src/timer.c
@@ -220,8 +220,8 @@ gf_timer_registry_init (glusterfs_ctx_t *ctx)
reg->stale.next = &reg->stale;
reg->stale.prev = &reg->stale;
- pthread_create (&reg->th, NULL, gf_timer_proc, ctx);
ctx->timer = reg;
+ pthread_create (&reg->th, NULL, gf_timer_proc, ctx);
}
out:
return ctx->timer;