Skip to content

Commit

Permalink
Fix compatible (#2362)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?

Fix catalog json compatibility with older version.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
  • Loading branch information
small-turtle-1 authored Dec 12, 2024
1 parent 3f07ecf commit 19c5691
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storage/meta/entry/segment_index_entry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,7 @@ UniquePtr<SegmentIndexEntry> SegmentIndexEntry::Deserialize(const nlohmann::json
segment_index_entry->ft_column_len_sum_ = index_entry_json["ft_column_len_sum"];
segment_index_entry->ft_column_len_cnt_ = index_entry_json["ft_column_len_cnt"];

if (index_entry_json["deprecate_ts"].is_null() || index_entry_json["deprecate_ts"] == UNCOMMIT_TS) {
if (!index_entry_json.contains("deprecate_ts") || index_entry_json["deprecate_ts"] == UNCOMMIT_TS) {
segment_index_entry->deleted_ = false;
} else {
segment_index_entry->deleted_ = true;
Expand Down

0 comments on commit 19c5691

Please sign in to comment.