diff options
author | Vinayak Hegde <vinayak@gluster.com> | 2009-09-16 02:37:19 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-09-16 03:01:59 -0700 |
commit | 47b340a0d499d5f9364f763e5794a433be609e17 (patch) | |
tree | 050cd54e0411177dc25e17be0a78d29bb2668af4 | |
parent | e16fc897aeece7598da195bb9bd050e352ff31ec (diff) |
cluster/stripe, when dbench is run, client crashes because in stripe.c priv is dreferenced without initialising.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 266 (In stripe client crashes after some time when disk space is full)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=266
-rw-r--r-- | xlators/cluster/stripe/src/stripe.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xlators/cluster/stripe/src/stripe.c b/xlators/cluster/stripe/src/stripe.c index 64c81a539..ee230a9c3 100644 --- a/xlators/cluster/stripe/src/stripe.c +++ b/xlators/cluster/stripe/src/stripe.c @@ -1172,7 +1172,8 @@ stripe_mknod_ifreg_setxattr_cbk (call_frame_t *frame, void *cookie, stripe_private_t *priv = NULL; xlator_list_t *trav = NULL; - LOCK (&frame->lock); + priv = this->private; + LOCK (&frame->lock); { callcnt = --local->call_count; @@ -1221,6 +1222,7 @@ stripe_mknod_ifreg_cbk (call_frame_t *frame, void *cookie, xlator_t *this, xlator_list_t *trav = NULL; stripe_private_t *priv = NULL; + priv = this->private; local = frame->local; LOCK (&frame->lock); @@ -1578,6 +1580,7 @@ stripe_create_setxattr_cbk (call_frame_t *frame, void *cookie, xlator_t *this, xlator_list_t *trav = NULL; int32_t callcnt = 0; + priv = this->private; local = frame->local; LOCK (&frame->lock); |