summaryrefslogtreecommitdiffstats
path: root/heal
diff options
context:
space:
mode:
authorRavishankar N <ravishankar@redhat.com>2019-03-15 19:31:03 +0530
committerRavishankar N <ravishankar@redhat.com>2019-03-27 00:18:30 +0000
commit8016d51a3bbd410b0b927ed66be50a09574b7982 (patch)
tree79850e25e55e9ef5d69272a0b67d0abd72c977d1 /heal
parent08d502c3b05c6f7831bb4cc764bd458b405a99b1 (diff)
downloadglusterfs-8016d51a3bbd410b0b927ed66be50a09574b7982.tar.gz
glusterfs-8016d51a3bbd410b0b927ed66be50a09574b7982.tar.xz
glusterfs-8016d51a3bbd410b0b927ed66be50a09574b7982.zip
afr: add client-pid to all gf_event() calls
client-pid for glustershd is GF_CLIENT_PID_SELF_HEALD client-pid for glfsheal is GF_CLIENT_PID_GLFS_HEALD updates: bz#1689250 Change-Id: Ib3a863af160ff48c822a5e6b0c27c575c9887470 Signed-off-by: Ravishankar N <ravishankar@redhat.com>
Diffstat (limited to 'heal')
-rw-r--r--heal/src/glfs-heal.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/heal/src/glfs-heal.c b/heal/src/glfs-heal.c
index 6030de3e58..7e37e47970 100644
--- a/heal/src/glfs-heal.c
+++ b/heal/src/glfs-heal.c
@@ -1688,6 +1688,12 @@ main(int argc, char **argv)
goto out;
}
+ ret = glfs_setfspid(fs, GF_CLIENT_PID_GLFS_HEAL);
+ if (ret) {
+ printf("Setting client pid failed, %s\n", strerror(errno));
+ goto out;
+ }
+
ret = glfs_init(fs);
if (ret < 0) {
ret = -errno;