diff options
author | shishir gowda <shishirng@gluster.com> | 2011-10-10 14:21:37 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2011-10-10 03:56:26 -0700 |
commit | 803e09f56b4ae665a36b3d480acf7037370feab8 (patch) | |
tree | e7ad52a5cb45b6bfaa20b223519d4e1e751b6580 /xlators/cluster/dht | |
parent | 926c029774776703c139dd8b8558decaefb5378d (diff) |
cluster/dht: selfheal as root
Change-Id: I8a0a91c2ddb7c487d06a9d5aeaed593b5e84abef
BUG: 2591
Reviewed-on: http://review.gluster.com/569
Reviewed-by: Amar Tumballi <amar@gluster.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators/cluster/dht')
-rw-r--r-- | xlators/cluster/dht/src/dht-common.c | 1 | ||||
-rw-r--r-- | xlators/cluster/dht/src/dht-selfheal.c | 1 |
2 files changed, 2 insertions, 0 deletions
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; |