]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/librbd/mirror/snapshot/CreatePrimaryRequest.cc
import ceph quincy 17.2.4
[ceph.git] / ceph / src / librbd / mirror / snapshot / CreatePrimaryRequest.cc
index 13f7894156ed16cc91513668cad470a9c0b384c9..54da9ad610933d67d72e95588a143a22f99ca0cc 100644 (file)
@@ -218,7 +218,7 @@ void CreatePrimaryRequest<I>::unlink_peer() {
         continue;
       }
       count++;
-      if (count == 3) {
+      if (count == max_snapshots) {
         unlink_snap_id = snap_it.first;
       }
       if (count > max_snapshots) {