Skip to content

Commit

Permalink
fix: fix isExpire
Browse files Browse the repository at this point in the history
  • Loading branch information
dl239 committed Nov 1, 2023
1 parent 4112c7c commit 9f8a915
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/storage/mem_table.cc
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,11 @@ bool MemTable::IsExpire(const LogEntry& entry) {
}
}
const int8_t* data = reinterpret_cast<const int8_t*>(entry.value().data());
std::string uncompress_data;
if (GetCompressType() == openmldb::type::kSnappy) {
snappy::Uncompress(entry.value().data(), entry.value().size(), &uncompress_data);
data = reinterpret_cast<const int8_t*>(uncompress_data.data());
}
uint8_t version = codec::RowView::GetSchemaVersion(data);
auto decoder = GetVersionDecoder(version);
if (decoder == nullptr) {
Expand Down

0 comments on commit 9f8a915

Please sign in to comment.