Browse Source

Skip replication when there are no changed chunks

Daniel Vincze 5 years ago
parent
commit
f584b507bf
1 changed files with 2 additions and 0 deletions
  1. 2 0
      coriolis/providers/replicator.py

+ 2 - 0
coriolis/providers/replicator.py

@@ -795,6 +795,8 @@ class Replicator(object):
                 self._event_manager.progress_update(
                 self._event_manager.progress_update(
                     "No new chunks to replicate for disk \"%s\" (%s)" % (
                     "No new chunks to replicate for disk \"%s\" (%s)" % (
                         volume['disk_id'], devName))
                         volume['disk_id'], devName))
+                self._repl_state = curr_state
+                return self._repl_state
 
 
             size = self._get_size_from_chunks(chunks)
             size = self._get_size_from_chunks(chunks)