diff options
author | Vijay Bellur <vijay@gluster.com> | 2010-07-29 03:09:38 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-07-29 02:16:39 -0700 |
commit | 543f9ef5754bf50bc1817cfe9ddc13201f4e009f (patch) | |
tree | 0ac78261de2b76e1a22ea8dc36add873e8bffebc /libglusterfs | |
parent | fac3ff8bfb3958a3bdc34dc9bff7cb281597e40f (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.c | 2 |
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 = ®->stale; reg->stale.prev = ®->stale; - pthread_create (®->th, NULL, gf_timer_proc, ctx); ctx->timer = reg; + pthread_create (®->th, NULL, gf_timer_proc, ctx); } out: return ctx->timer; |