summaryrefslogtreecommitdiff
path: root/db/column_family.h
diff options
context:
space:
mode:
authorJay Zhuang <zjay@fb.com>2022-07-14 21:49:34 -0700
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>2022-07-14 21:49:34 -0700
commita3acf2ef87e94a5877dd9561cd48f40d3075a3ee (patch)
tree53ff311aae0f4ff9b000583233ecd32f24ff2566 /db/column_family.h
parent66685d6aa184ec3905428fb5255cbd6ec20bf242 (diff)
Add seqno to time mapping (#10338)
Summary: Which will be used for tiered storage to preclude hot data from compacting to the cold tier (the last level). Internally, adding seqno to time mapping. A periodic_task is scheduled to record the current_seqno -> current_time in certain cadence. When memtable flush, the mapping informaiton is stored in sstable property. During compaction, the mapping information are merged and get the approximate time of sequence number, which is used to determine if a key is recently inserted or not and preclude it from the last level if it's recently inserted (within the `preclude_last_level_data_seconds`). Pull Request resolved: https://github.com/facebook/rocksdb/pull/10338 Test Plan: CI Reviewed By: siying Differential Revision: D37810187 Pulled By: jay-zhuang fbshipit-source-id: 6953be7a18a99de8b1cb3b162d712f79c2b4899f
Diffstat (limited to 'db/column_family.h')
-rw-r--r--db/column_family.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/db/column_family.h b/db/column_family.h
index a1d9060b3..91a825374 100644
--- a/db/column_family.h
+++ b/db/column_family.h
@@ -524,6 +524,8 @@ class ColumnFamilyData {
return file_metadata_cache_res_mgr_;
}
+ SequenceNumber GetFirstMemtableSequenceNumber() const;
+
static const uint32_t kDummyColumnFamilyDataId;
// Keep track of whether the mempurge feature was ever used.