From 0c4928d38a2790c8536bc96451be0db80d989116 Mon Sep 17 00:00:00 2001 From: Adam Kupczyk Date: Mon, 30 Mar 2020 16:43:16 +0200 Subject: [PATCH] os/bluestore: Now iterating over signed type. Signed-off-by: Adam Kupczyk --- src/os/bluestore/BlueStore.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; } -- 2.47.3