summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/ec/src/ec-heal.c
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2015-11-17 17:01:47 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2015-11-18 05:16:03 -0800
commite06adccb38f3dc91a4534232237e07589cd07426 (patch)
treee4d9b65ba46d09879e64cee20bfe8283fa877e0d /xlators/cluster/ec/src/ec-heal.c
parent92919e7de3d9ceaa70d4103266fc438dd28441cc (diff)
downloadglusterfs-e06adccb38f3dc91a4534232237e07589cd07426.tar.gz
glusterfs-e06adccb38f3dc91a4534232237e07589cd07426.tar.xz
glusterfs-e06adccb38f3dc91a4534232237e07589cd07426.zip
cluster/ec: Mark self-heal fops as internal
Change-Id: I8ae7af266d3e00460f0cfdc9389a926e5f2fee36 BUG: 1282761 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/12598 Tested-by: Gluster Build System <jenkins@build.gluster.com> Tested-by: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Xavier Hernandez <xhernandez@datalab.es>
Diffstat (limited to 'xlators/cluster/ec/src/ec-heal.c')
-rw-r--r--xlators/cluster/ec/src/ec-heal.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xlators/cluster/ec/src/ec-heal.c b/xlators/cluster/ec/src/ec-heal.c
index 10dc9f158e..d80cdabc5a 100644
--- a/xlators/cluster/ec/src/ec-heal.c
+++ b/xlators/cluster/ec/src/ec-heal.c
@@ -1369,7 +1369,7 @@ ec_heal_names (call_frame_t *frame, ec_t *ec, inode_t *inode,
if (!participants[i])
continue;
syncop_dir_scan (ec->xl_list[i], &loc,
- GF_CLIENT_PID_AFR_SELF_HEALD, &name_data,
+ GF_CLIENT_PID_SELF_HEALD, &name_data,
ec_name_heal_handler);
for (j = 0; j < ec->nodes; j++)
if (name_data.failed_on[j])
@@ -2325,6 +2325,8 @@ ec_heal_do (xlator_t *this, void *data, loc_t *loc, int32_t partial)
/*Do heal as root*/
frame->root->uid = 0;
frame->root->gid = 0;
+ /*Mark the fops as internal*/
+ frame->root->pid = GF_CLIENT_PID_SELF_HEALD;
participants = alloca0(ec->nodes);
ec_mask_to_char_array (ec->xl_up, participants, ec->nodes);
if (loc->name && strlen (loc->name)) {