提交 92593d51 编写于 作者: Y Yanqin Jin 提交者: Facebook GitHub Bot

Add a new EntryType for deletion with timestamp (#7195)

Summary:
Add `kEntryDeleteWithTimestamp` to `EntryType` which is a public API.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/7195

Test Plan: make check

Reviewed By: ajkr

Differential Revision: D22914704

Pulled By: riversand963

fbshipit-source-id: 886f73c6b70c527cad1c8fc9fc8d3afe60e1ea39
上级 9b083cb1
...@@ -12,6 +12,9 @@ ...@@ -12,6 +12,9 @@
### Performance Improvements ### Performance Improvements
* Reduce thread number for multiple DB instances by re-using one global thread for statistics dumping and persisting. * 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) ## 6.12 (2020-07-28)
### Public API Change ### Public API Change
* Encryption file classes now exposed for inheritance in env_encryption.h * Encryption file classes now exposed for inheritance in env_encryption.h
......
...@@ -32,6 +32,8 @@ EntryType GetEntryType(ValueType value_type) { ...@@ -32,6 +32,8 @@ EntryType GetEntryType(ValueType value_type) {
return kEntryPut; return kEntryPut;
case kTypeDeletion: case kTypeDeletion:
return kEntryDelete; return kEntryDelete;
case kTypeDeletionWithTimestamp:
return kEntryDeleteWithTimestamp;
case kTypeSingleDeletion: case kTypeSingleDeletion:
return kEntrySingleDelete; return kEntrySingleDelete;
case kTypeMerge: case kTypeMerge:
......
...@@ -18,6 +18,7 @@ typedef uint64_t SequenceNumber; ...@@ -18,6 +18,7 @@ typedef uint64_t SequenceNumber;
const SequenceNumber kMinUnCommittedSeq = 1; // 0 is always committed const SequenceNumber kMinUnCommittedSeq = 1; // 0 is always committed
// User-oriented representation of internal key types. // User-oriented representation of internal key types.
// Ordering of this enum entries should not change.
enum EntryType { enum EntryType {
kEntryPut, kEntryPut,
kEntryDelete, kEntryDelete,
...@@ -25,6 +26,7 @@ enum EntryType { ...@@ -25,6 +26,7 @@ enum EntryType {
kEntryMerge, kEntryMerge,
kEntryRangeDeletion, kEntryRangeDeletion,
kEntryBlobIndex, kEntryBlobIndex,
kEntryDeleteWithTimestamp,
kEntryOther, kEntryOther,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册