]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/os/bluestore/HybridAllocator.cc
import ceph 15.2.14
[ceph.git] / ceph / src / os / bluestore / HybridAllocator.cc
index 6caf5c6dd8924be68db1301ddb180e84d9a35299..3a2da67379b592eda2b8312b741102ff8bf149c7 100644 (file)
@@ -155,6 +155,8 @@ void HybridAllocator::dump(std::function<void(uint64_t offset, uint64_t length)>
 
 void HybridAllocator::init_rm_free(uint64_t offset, uint64_t length)
 {
+  if (!length)
+    return;
   std::lock_guard l(lock);
   ldout(cct, 10) << __func__ << std::hex
                  << " offset 0x" << offset