From 05cb763fcbfafdbf033b301b3b9313ec2a371dff Mon Sep 17 00:00:00 2001 From: "Anand V. Avati" Date: Fri, 26 Sep 2008 16:10:08 +0000 Subject: create_frame() used to create frames everywhere --- libglusterfs/src/stack.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libglusterfs/src/stack.h') diff --git a/libglusterfs/src/stack.h b/libglusterfs/src/stack.h index 3d982fa214..01df991276 100644 --- a/libglusterfs/src/stack.h +++ b/libglusterfs/src/stack.h @@ -217,6 +217,7 @@ copy_frame (call_frame_t *frame) newctx->frames.this = frame->this; newctx->frames.root = newctx; + newctx->pool = oldctx->pool; LOCK (&oldctx->pool->lock); { @@ -226,8 +227,6 @@ copy_frame (call_frame_t *frame) } UNLOCK (&oldctx->pool->lock); - newctx->pool = oldctx->pool; - LOCK_INIT (&newctx->frames.lock); return &newctx->frames; -- cgit