From 47b340a0d499d5f9364f763e5794a433be609e17 Mon Sep 17 00:00:00 2001 From: Vinayak Hegde Date: Wed, 16 Sep 2009 02:37:19 +0000 Subject: cluster/stripe, when dbench is run, client crashes because in stripe.c priv is dreferenced without initialising. Signed-off-by: Anand V. Avati 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 --- xlators/cluster/stripe/src/stripe.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'xlators/cluster/stripe') 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); -- cgit