]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: Now iterating over signed type. 33782/head
authorAdam Kupczyk <akupczyk@redhat.com>
Mon, 30 Mar 2020 14:43:16 +0000 (16:43 +0200)
committerAdam Kupczyk <akupczyk@redhat.com>
Mon, 30 Mar 2020 14:43:16 +0000 (16:43 +0200)
Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
src/os/bluestore/BlueStore.cc

index 1825ff79d6c78b10c523c88c83bde736da774711..2333154d84212c41d742297d98de1b11c5ca4687 100644 (file)
@@ -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];
     }