Skip to content

Commit

Permalink
Fix to bug in DB builder (#162)
Browse files Browse the repository at this point in the history
* We should set the special flag for ForestDB, otherwise the custom
sequence number will be ignored.
  • Loading branch information
greensky00 authored Jan 10, 2024
1 parent c453a1b commit 279647e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/jungle_builder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ Status Builder::set(const Record& rec) {
doc.meta = raw_meta.data;
doc.metalen = raw_meta.size;
doc.seqnum = (rec.seqNum == Record::NIL_SEQNUM) ? seqnumCounter++ : rec.seqNum;
doc.flags = FDB_CUSTOM_SEQNUM;
curMaxSeqnum = std::max(curMaxSeqnum, doc.seqnum);

if (curMinKey.empty()) {
Expand Down

0 comments on commit 279647e

Please sign in to comment.