]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: do not partially deallocate compressed blobs
authorSage Weil <sage@redhat.com>
Mon, 23 May 2016 19:04:31 +0000 (15:04 -0400)
committerSage Weil <sage@redhat.com>
Wed, 1 Jun 2016 15:40:48 +0000 (11:40 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/bluestore_types.cc

index 5f1f0ae397d4645250a5dba1d5f01ca99e31da05..f93f8099f958821e86f700413fd4dae0b219bffd 100644 (file)
@@ -565,6 +565,11 @@ void bluestore_blob_t::put_ref(
     return;
   }
 
+  // we cannot do partial deallocation on compressed blobs
+  if (has_flag(FLAG_COMPRESSED)) {
+    return;
+  }
+
   // search from logical releases
   for (auto le : logical) {
     uint64_t r_off = le.offset;