]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: GC class, make some members local.
authorIgor Fedotov <ifedotov@suse.com>
Wed, 22 May 2019 22:22:23 +0000 (01:22 +0300)
committerIgor Fedotov <ifedotov@suse.com>
Thu, 23 May 2019 14:08:19 +0000 (17:08 +0300)
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h

index be0867580f8a311c300777a11bbd9b44a9e32f46..f144afa2107870b1817761008cfc3186024d441a 100644 (file)
@@ -838,8 +838,8 @@ int64_t BlueStore::GarbageCollector::estimate(
   used_alloc_unit = boost::optional<uint64_t >();
   blob_info_counted = nullptr;
 
-  gc_start_offset = start_offset;
-  gc_end_offset = start_offset + length;
+  uint64_t gc_start_offset = start_offset;
+  uint64_t gc_end_offset = start_offset + length;
 
   uint64_t end_offset = start_offset + length;
 
index c570ea8b0a7151071114789bc5cee0d022c76887..e46ab217b9115ace2237aed2e8e04ee30969a3e1 100644 (file)
@@ -1021,8 +1021,6 @@ public:
     int64_t expected_for_release = 0;      ///< alloc units currently used by
                                            ///< compressed blobs that might
                                            ///< gone after GC
-    uint64_t gc_start_offset = 0;              ///starting offset for GC
-    uint64_t gc_end_offset = 0;                ///ending offset for GC
 
   protected:
     void process_protrusive_extents(const BlueStore::ExtentMap& extent_map,