Printing all index entries can be very time consuming for large
buckets and the inability to switch this behavior off makes it
cumbersome to use the command for fixing bucket stats. This was
also preventing the command from outputting recalculated bucket
stats when the --fix flag wasn't specified.
Signed-off-by: Cory Snyder <csnyder@1111systems.com>
if (ret < 0)
return ret;
- ret = bucket.check_object_index(dpp, op_state, flusher, y);
- if (ret < 0)
- return ret;
+ if (op_state.will_check_objects()) {
+ ret = bucket.check_object_index(dpp, op_state, flusher, y);
+ if (ret < 0)
+ return ret;
+ }
ret = bucket.check_index(dpp, op_state, existing_stats, calculated_stats);
if (ret < 0)