]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore/BlueFS: crash on enospc
authorSage Weil <sage@redhat.com>
Tue, 3 Oct 2017 15:41:33 +0000 (10:41 -0500)
committerSage Weil <sage@redhat.com>
Wed, 4 Oct 2017 22:34:19 +0000 (17:34 -0500)
We were passing this error back to rocksdb, which would then crash (much)
later with a corrupted SST file!  No good.

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

index 6d7fcf0b7edb29d5cd9e991c838f1e5383bd1e1e..8c41e88f5ec4c799ffc1335443a2b6ad60fe5bb9 100644 (file)
@@ -1509,6 +1509,7 @@ int BlueFS::_flush_range(FileWriter *h, uint64_t offset, uint64_t length)
       derr << __func__ << " allocated: 0x" << std::hex << allocated
            << " offset: 0x" << offset << " length: 0x" << length << std::dec
            << dendl;
+      assert(0 == "bluefs enospc");
       return r;
     }
     h->file->fnode.recalc_allocated();