From: Adam Kupczyk Date: Mon, 30 Mar 2020 14:43:16 +0000 (+0200) Subject: os/bluestore: Now iterating over signed type. X-Git-Tag: v16.1.0~2617^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0c4928d38a2790c8536bc96451be0db80d989116;p=ceph.git os/bluestore: Now iterating over signed type. Signed-off-by: Adam Kupczyk --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 1825ff79d6c7..2333154d8421 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -15527,7 +15527,7 @@ void BlueStore::_record_allocation_stats() ++ probe_count; - for (size_t i = alloc_stats_history.size() - 1 ; i > 0 ; --i) { + for (ssize_t i = alloc_stats_history.size() - 1 ; i > 0 ; --i) { if ((probe_count % (1 << i)) == 0) { alloc_stats_history[i] = alloc_stats_history[i - 1]; }