From 44773417bcaafeb6b7a8c44b5dc22bc7969e3102 Mon Sep 17 00:00:00 2001 From: Pranith K Date: Thu, 3 Feb 2011 21:23:15 +0000 Subject: cluster/dht: Perform self-heal as root Signed-off-by: Pranith Kumar K Signed-off-by: Anand V. Avati BUG: 2370 (cluster/afr: Perform self-heal as root) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2370 --- xlators/cluster/dht/src/dht-helper.c | 31 ------------------------------- 1 file changed, 31 deletions(-) (limited to 'xlators/cluster/dht/src/dht-helper.c') diff --git a/xlators/cluster/dht/src/dht-helper.c b/xlators/cluster/dht/src/dht-helper.c index dd2571647..7da3a7a61 100644 --- a/xlators/cluster/dht/src/dht-helper.c +++ b/xlators/cluster/dht/src/dht-helper.c @@ -460,37 +460,6 @@ dht_iatt_merge (xlator_t *this, struct iatt *to, return 0; } -int -dht_frame_su_do (call_frame_t *frame) -{ - dht_local_t *local = NULL; - - local = frame->local; - - local->uid = frame->root->uid; - local->gid = frame->root->gid; - - frame->root->uid = 0; - frame->root->gid = 0; - - return 0; -} - - -int -dht_frame_su_undo (call_frame_t *frame) -{ - dht_local_t *local = NULL; - - local = frame->local; - - frame->root->uid = local->uid; - frame->root->gid = local->gid; - - return 0; -} - - int dht_build_child_loc (xlator_t *this, loc_t *child, loc_t *parent, char *name) { -- cgit