[feature-wip](partial update) PART1: support basic partial write (#17542)

This commit is contained in:
yixiutt
2023-04-28 17:17:57 +08:00
committed by GitHub
parent 718297d3c1
commit aef9355cd3
65 changed files with 31529 additions and 176 deletions

View File

@ -88,6 +88,10 @@ Status SegmentLoader::load_segments(const BetaRowsetSharedPtr& rowset,
return Status::OK();
}
void SegmentLoader::erase_segment(const SegmentLoader::CacheKey& key) {
_cache->erase(key.encode());
}
Status SegmentLoader::prune() {
const int64_t curtime = UnixMillis();
auto pred = [curtime](const void* value) -> bool {