]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/bluestore: fsck: int64_t for error count
authorSage Weil <sage@redhat.com>
Thu, 8 Aug 2019 21:31:01 +0000 (16:31 -0500)
committerSage Weil <sage@redhat.com>
Thu, 8 Aug 2019 22:26:24 +0000 (17:26 -0500)
Just to be on the safe side.

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h

index 5c9797c7ecd084e900f625d98e47329e7ff63342..f88bb7b49ce4f0e1795b2a309162f2a63e054c63 100644 (file)
@@ -5862,7 +5862,7 @@ int BlueStore::_balance_bluefs_freespace()
   return ret;
 }
 
-int BlueStore::_open_collections(int *errors)
+int BlueStore::_open_collections(int64_t *errors)
 {
   dout(10) << __func__ << dendl;
   ceph_assert(coll_map.empty());
@@ -6857,7 +6857,7 @@ int BlueStore::_fsck_check_extents(
 void BlueStore::_fsck_check_pool_statfs(
   BlueStore::per_pool_statfs& expected_pool_statfs,
   bool need_per_pool_stats,
-  int& errors,
+  int64_t& errors,
   BlueStoreRepairer* repairer)
 {
   auto it = db->get_iterator(PREFIX_STAT);
@@ -7013,7 +7013,7 @@ int BlueStore::_fsck(bool deep, bool repair)
          << " <<<START>>>"
          << (repair ? " repair" : " check")
          << (deep ? " (deep)" : " (shallow)") << " start" << dendl;
-  int errors = 0;
+  int64_t errors = 0;
   unsigned repaired = 0;
 
   typedef btree::btree_set<
index da6725f5ad4e79c8607bfbd216ec2c07d44d14a5..17e0649e5d76d93a3f4afeec6cafa7508fbbde14 100644 (file)
@@ -2095,7 +2095,7 @@ private:
   void _close_fm();
   int _open_alloc();
   void _close_alloc();
-  int _open_collections(int *errors=0);
+  int _open_collections(int64_t *errors=0);
   void _close_collections();
 
   int _setup_block_symlink_or_file(string name, string path, uint64_t size,
@@ -2196,7 +2196,7 @@ private:
   void _fsck_check_pool_statfs(
     per_pool_statfs& expected_pool_statfs,
     bool need_per_pool_stats,
-    int& errors,
+    int64_t& errors,
     BlueStoreRepairer* repairer);
 
   void _buffer_cache_write(