Details
-
Task
-
Resolution: Done
-
Major
-
master
-
None
Description
We currently do the following, but we can remove the read from disk and just set 'vbstate->highSeqno' to the last seqno we have jus written:
// Check and update last seqno
|
auto lastSeqno = readHighSeqnoFromDisk(*vbh);
|
if (maxDBSeqno != lastSeqno) {
|
logger.log(EXTENSION_LOG_WARNING,
|
"RocksDBKVStore::saveDocs: Seqno in db header (%" PRIu64
|
") is not matched with what was persisted (%" PRIu64
|
") for vb:%" PRIu16,
|
lastSeqno,
|
maxDBSeqno,
|
vbid);
|
}
|
vbstate->highSeqno = lastSeqno;
|