From 803e09f56b4ae665a36b3d480acf7037370feab8 Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Mon, 10 Oct 2011 14:21:37 +0530 Subject: cluster/dht: selfheal as root Change-Id: I8a0a91c2ddb7c487d06a9d5aeaed593b5e84abef BUG: 2591 Reviewed-on: http://review.gluster.com/569 Reviewed-by: Amar Tumballi Tested-by: Gluster Build System --- xlators/cluster/dht/src/dht-common.c | 1 + xlators/cluster/dht/src/dht-selfheal.c | 1 + 2 files changed, 2 insertions(+) (limited to 'xlators') diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index e03c463bc0e..785152bb368 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -4230,6 +4230,7 @@ dht_rmdir_selfheal_cbk (call_frame_t *frame, void *cookie, xlator_t *this, local->postparent.ia_ino = local->loc.parent->ino; } + FRAME_SU_UNDO (frame, dht_local_t); DHT_STACK_UNWIND (rmdir, frame, local->op_ret, local->op_errno, &local->preparent, &local->postparent); diff --git a/xlators/cluster/dht/src/dht-selfheal.c b/xlators/cluster/dht/src/dht-selfheal.c index c8315364dbe..d5c7e9df207 100644 --- a/xlators/cluster/dht/src/dht-selfheal.c +++ b/xlators/cluster/dht/src/dht-selfheal.c @@ -611,6 +611,7 @@ dht_selfheal_restore (call_frame_t *frame, dht_selfheal_dir_cbk_t dir_cbk, local->selfheal.dir_cbk = dir_cbk; local->selfheal.layout = dht_layout_ref (frame->this, layout); + FRAME_SU_DO (frame, dht_local_t); ret = dht_selfheal_dir_mkdir (frame, loc, layout, 1); return ret; -- cgit