Skip to content

Commit

Permalink
unique ptr it
Browse files Browse the repository at this point in the history
  • Loading branch information
vagetablechicken committed Jan 9, 2024
1 parent a22cb69 commit 2555c04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storage/segment.cc
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ void Segment::SplitList(KeyEntry* entry, uint64_t ts, ::openmldb::base::Node<uin

bool Segment::ListContains(KeyEntry* entry, uint64_t time, DataBlock* row, bool check_all_time) {
// one key-time may have multi records
auto it = entry->entries.NewIterator();
std::unique_ptr<TimeEntries::Iterator> it(entry->entries.NewIterator());
if (check_all_time) {
it->SeekToFirst();
while (it->Valid()) {
Expand Down

0 comments on commit 2555c04

Please sign in to comment.