Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
vagetablechicken committed May 31, 2024
1 parent 14f6f29 commit 3201154
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/storage/index_organized_table.cc
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,8 @@ absl::Status IndexOrganizedTable::Put(uint64_t time, const std::string& value, c
}
// clustered segment should be dedup and update will trigger all index update(impl in cli router)
if (!iot_segment->Put(kv.second, iter->second, cblock, sblock, false)) {
return absl::AlreadyExistsError("data exists"); // let caller know exists
// even no put_if_absent, return false if exists or wrong
return absl::AlreadyExistsError("data exists or wrong");
}
}
// cblock and sblock both will sub record_byte_size_ when delete, so add them all
Expand Down

0 comments on commit 3201154

Please sign in to comment.