We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cfc1fc commit afe615cCopy full SHA for afe615c
core/utils/index_utils.cpp
@@ -37,15 +37,13 @@ namespace tier {
37
// struct.
38
//
39
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;
+ const tier::SegmentStats& segment,
+ tier::SegmentAttributes& attrs) {
+
+ auto* meta = segment.meta;
+ attrs.byte_size = meta->byte_size;
+ attrs.docs_count = meta->docs_count;
+ attrs.live_docs_count = meta->live_docs_count;
49
}
50
51
0 commit comments