Skip to content

Commit afe615c

Browse files
committed
Fixed review comments
1 parent 9cfc1fc commit afe615c

File tree

2 files changed

+184
-215
lines changed

2 files changed

+184
-215
lines changed

core/utils/index_utils.cpp

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,13 @@ namespace tier {
3737
// struct.
3838
//
3939
void getSegmentDimensions(
40-
std::vector<tier::SegmentStats>::const_iterator itr,
41-
uint64_t& byte_size,
42-
uint64_t& docs_count,
43-
uint64_t& live_docs_count) {
44-
45-
auto itrMeta = itr->meta;
46-
byte_size = itrMeta->byte_size;
47-
docs_count = itrMeta->docs_count;
48-
live_docs_count = itrMeta->live_docs_count;
40+
const tier::SegmentStats& segment,
41+
tier::SegmentAttributes& attrs) {
42+
43+
auto* meta = segment.meta;
44+
attrs.byte_size = meta->byte_size;
45+
attrs.docs_count = meta->docs_count;
46+
attrs.live_docs_count = meta->live_docs_count;
4947
}
5048
}
5149

0 commit comments

Comments
 (0)