diff options
Diffstat (limited to 'geo-replication/syncdaemon/master.py')
| -rw-r--r-- | geo-replication/syncdaemon/master.py | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/geo-replication/syncdaemon/master.py b/geo-replication/syncdaemon/master.py index 3ca60c65a07..f25279ff3a4 100644 --- a/geo-replication/syncdaemon/master.py +++ b/geo-replication/syncdaemon/master.py @@ -1037,7 +1037,7 @@ class GMasterChangelogMixin(GMasterCommon):                      # Special case: record mknod as link                      if ty in ['MKNOD']:                          mode = int(ec[2]) -                        if mode & 01000: +                        if mode & 0o1000:                                  # Avoid stat'ing the file as it                                  # may be deleted in the interim                                  st = FreeObject(st_mode=int(ec[2]), @@ -1688,7 +1688,7 @@ class GMasterXsyncMixin(GMasterChangelogMixin):      def is_sticky(self, path, mo):          """check for DHTs linkto sticky bit file"""          sticky = False -        if mo & 01000: +        if mo & 0o1000:              sticky = self.master.server.linkto_check(path)          return sticky  | 
