summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src/timer.c')
-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 3e39231e0b7..433eeb7dfb9 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;