MB-24066/MB-22178: Set opencheckpointid to 1 after rollback
[ep-engine.git] / src / ep.cc
index dcd2c78..96bfdff 100644 (file)
--- a/src/ep.cc
+++ b/src/ep.cc
@@ -4003,6 +4003,7 @@ EventuallyPersistentStore::rollback(uint16_t vbid,
                 vb->checkpointManager.clear(vb, result.highSeqno);
                 vb->setPersistedSnapshot(result.snapStartSeqno, result.snapEndSeqno);
                 vb->incrRollbackItemCount(prevHighSeqno - result.highSeqno);
+                vb->checkpointManager.setOpenCheckpointId(1);
                 return ENGINE_SUCCESS;
             }
         }