summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/stack.h
diff options
context:
space:
mode:
authorAnand V. Avati <avati@80x25.org>2008-09-26 16:10:08 +0000
committerAmar Tumballi <amarts@redhat.com>2017-05-05 13:05:48 +0530
commit05cb763fcbfafdbf033b301b3b9313ec2a371dff (patch)
tree22ef9c21b81dfc091a1513637d7fae7e46d12af6 /libglusterfs/src/stack.h
parent5dc7cbff66758b7c7349c37125633ae401468c95 (diff)
create_frame() used to create frames everywhere
Diffstat (limited to 'libglusterfs/src/stack.h')
-rw-r--r--libglusterfs/src/stack.h3
1 files changed, 1 insertions, 2 deletions
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;