Skip to content

Commit

Permalink
[BugFix] pk compaction update cache entry size (StarRocks#28332)
Browse files Browse the repository at this point in the history
Signed-off-by: liuyufei9527 <[email protected]>
  • Loading branch information
liuyufei9527 authored Aug 24, 2023
1 parent f55f33b commit 681452c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions be/src/storage/tablet_updates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1850,6 +1850,7 @@ void TabletUpdates::_apply_compaction_commit(const EditVersionInfo& version_info
index_entry->update_expire_time(MonotonicMillis() + manager->get_cache_expire_ms());
auto& index = index_entry->value();
auto st = index.load(&_tablet);
manager->index_cache().update_object_size(index_entry, index.memory_usage());
// `enable_persistent_index` of tablet maybe change by alter, we should get `enable_persistent_index` from index to
// avoid inconsistency between persistent index file and PersistentIndexMeta
bool enable_persistent_index = index.enable_persistent_index();
Expand Down

0 comments on commit 681452c

Please sign in to comment.