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;
|
Attachments
For Gerrit Dashboard: MB-27197 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
90786,7 | MB-27197 CouchRocks: Update VBState without reading high seqno from disk | master | kv_engine | Status: MERGED | +2 | +1 |