Skip to content

Commit

Permalink
Update secondary_index_data.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
yangzq50 authored Dec 9, 2024
1 parent 5197a99 commit 4ac0a80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storage/secondary_index/secondary_index_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ struct SecondaryIndexChunkDataReader {
auto *index = static_cast<const SecondaryIndexData *>(handle_.GetData());
assert(index->GetChunkRowCount() == row_count_);
std::tie(key_ptr_, offset_ptr_) = index->GetKeyOffsetPointer();
assert(key_ptr_ + row_count_ * sizeof(OrderedKeyType) == offset_ptr_);
assert(static_assert<const char *>(key_ptr_) + row_count_ * sizeof(OrderedKeyType) == static_assert<const char *>(offset_ptr_));
}
bool GetNextDataPair(OrderedKeyType &key, u32 &offset) {
if (next_offset_ >= row_count_) {
Expand Down

0 comments on commit 4ac0a80

Please sign in to comment.