diff options
Diffstat (limited to 'geo-replication/syncdaemon/master.py')
| -rw-r--r-- | geo-replication/syncdaemon/master.py | 10 | 
1 files changed, 10 insertions, 0 deletions
diff --git a/geo-replication/syncdaemon/master.py b/geo-replication/syncdaemon/master.py index b47ecb5a534..55226bdf94f 100644 --- a/geo-replication/syncdaemon/master.py +++ b/geo-replication/syncdaemon/master.py @@ -824,6 +824,13 @@ class GMasterChangelogMixin(GMasterCommon):              et = e[self.IDX_START:self.IDX_END]   # entry type              ec = e[self.IDX_END:].split(' ')      # rest of the bits +            # skip ENTRY operation if cold tier brick +            if self.name == 'live_changelog': +                if boolify(gconf.is_coldtier) and et == self.TYPE_ENTRY: +                    logging.debug('skip ENTRY op: %s if cold tier brick' +                                  % (ec[self.POS_TYPE])) +                    continue +              if et == self.TYPE_ENTRY:                  # extract information according to the type of                  # the entry operation. create(), mkdir() and mknod() @@ -1131,6 +1138,7 @@ class GMasterChangelogMixin(GMasterCommon):          self.changelog_done_func = self.changelog_agent.done          self.processed_changelogs_dir = os.path.join(self.setup_working_dir(),                                                       ".processed") +        self.name = "live_changelog"          self.status = status @@ -1143,6 +1151,7 @@ class GMasterChangeloghistoryMixin(GMasterChangelogMixin):          self.history_turns = 0          self.processed_changelogs_dir = os.path.join(self.setup_working_dir(),                                                       ".history/.processed") +        self.name = "history_changelog"          self.status = status      def crawl(self): @@ -1237,6 +1246,7 @@ class GMasterXsyncMixin(GMasterChangelogMixin):          self.tempdir = self.setup_working_dir()          self.tempdir = os.path.join(self.tempdir, 'xsync')          self.processed_changelogs_dir = self.tempdir +        self.name = "xsync"          logging.info('xsync temp directory: %s' % self.tempdir)          try:              os.makedirs(self.tempdir)  | 
