Handle integer overflow of the op_stat_count

This commit is contained in:
Vitaliy Filippov
2020-05-15 01:37:17 +03:00
parent 2c3e84cc41
commit 19f25c7cd5
5 changed files with 27 additions and 1 deletions
-1
View File
@@ -155,7 +155,6 @@ json11::Json osd_t::get_statistics()
st["free"] = bs->get_free_block_count() * bs->get_block_size();
}
st["host"] = self_state["host"];
// FIXME: handle integer overflow
json11::Json::object op_stats, subop_stats;
for (int i = 0; i <= OSD_OP_MAX; i++)
{