]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
PGLog: we cannot rollback past a recovered object entry
authorSamuel Just <sam.just@inktank.com>
Tue, 10 Dec 2013 18:50:59 +0000 (10:50 -0800)
committerSamuel Just <sam.just@inktank.com>
Wed, 22 Jan 2014 22:39:16 +0000 (14:39 -0800)
We don't recover the older versions, so we can't do a rollback.
In general, this is ok since we had enough copies to recover it
in the first place.

Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/PGLog.h

index 0afd23eb09b5f2b5653dc13d144621f602e8e3b8..6c8cc09851685d3c1f1b186120cac020feab4bdc 100644 (file)
@@ -359,6 +359,9 @@ public:
        log.complete_to++;
       }
     }
+
+    if (log.can_rollback_to < v)
+      log.can_rollback_to = v;
   }
 
   void activate_not_complete(pg_info_t &info) {