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.
2 parents fd13a17 + ef42ddb commit 1a8f084Copy full SHA for 1a8f084
src/test/osd/TestOSDMap.cc
@@ -426,7 +426,7 @@ class OSDMapTest : public testing::Test,
426
cout << "<<<<<PGs distribution:" << std::endl;
427
}
428
int high_load_after = 0;
429
- for (auto i = 0 ; i < weights.size() ; i++) {
+ for (auto i = 0 ; std::cmp_less(i, weights.size()) ; i++) {
430
int pgs = pgs_by_osd[i].size();
431
int prims = prim_pgs_by_osd[i].size();
432
int cur_load = prims * 100 + (pgs - prims) * (100 - rr);
0 commit comments