Skip to content

Commit 8dc1759

Browse files
pbhandar2meta-codesync[bot]
authored andcommitted
Add AccessTimeMapConfig Thrift struct for ATM persistence
Summary: Add a new `AccessTimeMapConfig` Thrift struct to the navy serialization schema. This struct stores the metadata needed to validate and restore AccessTimeMap entries during warm restart: version, numShards, maxSize, and entryCount. This is a pure schema addition with no consumers yet — the persist/recover methods that use it will be added in a follow-up diff. Reviewed By: byahn0996 Differential Revision: D95332902 fbshipit-source-id: e4cf5a536490289b889f309df8d6857d23e955fb
1 parent db1a1da commit 8dc1759

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

cachelib/navy/serialization/objects.thrift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,10 @@ struct FixedSizeIndexConfig {
112112
3: byte numBucketsPerChunkPower = 0;
113113
4: i64 numBucketsPerShard = 0;
114114
}
115+
116+
struct AccessTimeMapConfig {
117+
1: i32 version = 0;
118+
2: i64 numShards = 0;
119+
3: i64 maxSize = 0;
120+
4: i64 entryCount = 0;
121+
}

0 commit comments

Comments
 (0)