Sfoglia il codice sorgente

Merge pull request #185 from Dany9966/skip-nochange-replication

Skip replication when there are no changed chunks
Nashwan Azhari 5 anni fa
parent
commit
22d3ff609d
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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)