diff --git a/HISTORY.md b/HISTORY.md index 7b249b7fc411aed80cdd7384c1143f18fbc3b86a..f9d10e831e66b29ea9ff98ceb4504c0af42d2fdc 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -12,6 +12,9 @@ ### Performance Improvements * Reduce thread number for multiple DB instances by re-using one global thread for statistics dumping and persisting. +### Public API Change +* Expose kTypeDeleteWithTimestamp in EntryType and update GetEntryType() accordingly. + ## 6.12 (2020-07-28) ### Public API Change * Encryption file classes now exposed for inheritance in env_encryption.h diff --git a/db/dbformat.cc b/db/dbformat.cc index 85411ed3eab00ebf5373dae102949387e9bb4cbe..40e9917ec8abf4832bae5bf69fd69ed6d08e0a7c 100644 --- a/db/dbformat.cc +++ b/db/dbformat.cc @@ -32,6 +32,8 @@ EntryType GetEntryType(ValueType value_type) { return kEntryPut; case kTypeDeletion: return kEntryDelete; + case kTypeDeletionWithTimestamp: + return kEntryDeleteWithTimestamp; case kTypeSingleDeletion: return kEntrySingleDelete; case kTypeMerge: diff --git a/include/rocksdb/types.h b/include/rocksdb/types.h index 4d004b69d0ee6552b387af73b24ab2276762650e..a4ab9c07a0bb91e11cffb7910cb8e77855a74294 100644 --- a/include/rocksdb/types.h +++ b/include/rocksdb/types.h @@ -18,6 +18,7 @@ typedef uint64_t SequenceNumber; const SequenceNumber kMinUnCommittedSeq = 1; // 0 is always committed // User-oriented representation of internal key types. +// Ordering of this enum entries should not change. enum EntryType { kEntryPut, kEntryDelete, @@ -25,6 +26,7 @@ enum EntryType { kEntryMerge, kEntryRangeDeletion, kEntryBlobIndex, + kEntryDeleteWithTimestamp, kEntryOther, };