summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2010-07-29 03:09:38 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-07-29 02:16:39 -0700
commit543f9ef5754bf50bc1817cfe9ddc13201f4e009f (patch)
tree0ac78261de2b76e1a22ea8dc36add873e8bffebc /libglusterfs
parentfac3ff8bfb3958a3bdc34dc9bff7cb281597e40f (diff)
libglusterfs: Prevent multiple timer threads from being spawnedv3.1.0qa3
Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1246 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1246
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 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;