diff options
Diffstat (limited to 'geo-replication/syncdaemon/master.py')
| -rw-r--r-- | geo-replication/syncdaemon/master.py | 22 | 
1 files changed, 12 insertions, 10 deletions
diff --git a/geo-replication/syncdaemon/master.py b/geo-replication/syncdaemon/master.py index 7985aac5439..3ca60c65a07 100644 --- a/geo-replication/syncdaemon/master.py +++ b/geo-replication/syncdaemon/master.py @@ -1163,16 +1163,18 @@ class GMasterChangelogMixin(GMasterCommon):              self.status.inc_value("entry", len(entries))              failures = self.slave.server.entry_ops(entries) -            count = 0 -            while failures and count < self.MAX_OE_RETRIES: -                count += 1 -                self.handle_entry_failures(failures, entries) -                logging.info("Retry original entries. count = %s" % count) -                failures = self.slave.server.entry_ops(entries) -                if not failures: -                    logging.info("Sucessfully fixed all entry ops with gfid " -                                 "mismatch") -                    break + +            if gconf.get("gfid-conflict-resolution"): +                count = 0 +                while failures and count < self.MAX_OE_RETRIES: +                    count += 1 +                    self.handle_entry_failures(failures, entries) +                    logging.info("Retry original entries. count = %s" % count) +                    failures = self.slave.server.entry_ops(entries) +                    if not failures: +                        logging.info("Sucessfully fixed all entry ops with " +                                     "gfid mismatch") +                        break              self.log_failures(failures, 'gfid', gauxpfx(), 'ENTRY')              self.status.dec_value("entry", len(entries))  | 
