summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShwetha K Acharya <sacharya@redhat.com>2020-08-21 12:41:36 +0530
committerKotresh HR <khiremat@redhat.com>2020-09-09 10:19:10 +0000
commit683d7940c4fd0e3392b67101f0d5a2baeb2c0171 (patch)
tree3b4fbd5bdf14ad7dec7d18ac609395e8e1a70597
parentc0493511aaf9a4e0c77fb0934a92dd21af5b84b1 (diff)
geo-rep: Fix string comparison
Backport of: >Patch link: https://review.gluster.org/#/c/glusterfs/+/24865/ >Fixes: #1438 >Change-Id: If9f1c2e89e504512bcf77608fb4a4fedb19f0399 >Signed-off-by: Kotresh HR <khiremat@redhat.com> Fixes: #1438 Change-Id: If9f1c2e89e504512bcf77608fb4a4fedb19f0399 Signed-off-by: Shwetha K Acharya <sacharya@redhat.com> (cherry picked from commit 005d2ac1d8cc57e0e36f7cf230ae09a4f860bd16)
-rw-r--r--geo-replication/syncdaemon/syncdutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/geo-replication/syncdaemon/syncdutils.py b/geo-replication/syncdaemon/syncdutils.py
index 842bc6f5ea8..6b5a478c328 100644
--- a/geo-replication/syncdaemon/syncdutils.py
+++ b/geo-replication/syncdaemon/syncdutils.py
@@ -702,7 +702,7 @@ def get_slv_dir_path(slv_host, slv_volume, gfid):
if not isinstance(realpath, int):
basename = os.path.basename(realpath).rstrip('\x00')
dirpath = os.path.dirname(realpath)
- if dirpath is "/":
+ if dirpath == "/":
pargfid = ROOT_GFID
else:
dirpath = dirpath.strip("/")