Skip to content

Commit 1e6252c

Browse files
committed
fix
1 parent ef52284 commit 1e6252c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tools/bigkey_analyzer/bigkey_analyzer.cc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "rocksdb/status.h"
2323
#include "storage/src/base_data_key_format.h"
2424
#include "storage/src/base_meta_value_format.h"
25+
#include "storage/src/lists_meta_value_format.h"
2526

2627
// Utility function to check if a directory exists
2728
bool DirectoryExists(const std::string& path) {
@@ -682,13 +683,13 @@ void AnalyzeLists(const std::string& path, std::vector<KeyInfo>& key_infos, cons
682683
if (value_slice.size() >= storage::ParsedBaseMetaValue::kBaseMetaValueSuffixLength) {
683684
storage::ParsedListsMetaValue parsed_meta(value_slice);
684685

685-
// Skip stale or empty lists
686-
if (parsed_meta.IsStale() || parsed_meta.count() == 0) {
686+
// Skip empty lists
687+
if (parsed_meta.count() == 0) {
687688
continue;
688689
}
689690

690691
int32_t timestamp = parsed_meta.timestamp();
691-
if (timestamp > 0 && !parsed_meta.IsPermanentSurvival()) {
692+
if (timestamp > 0) {
692693
int64_t diff = timestamp - curtime;
693694
ttl = diff > 0 ? diff : -2;
694695
}

0 commit comments

Comments
 (0)