]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore/BlueFS: add assert for sanity/clarity 11095/head
authorSage Weil <sage@redhat.com>
Thu, 15 Sep 2016 16:20:01 +0000 (12:20 -0400)
committerSage Weil <sage@redhat.com>
Thu, 15 Sep 2016 16:20:01 +0000 (12:20 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueFS.cc

index 279a9d469c592fb0df3a2a11301fba005256034c..92987eec98769bdd8b5dfda1d3a0e158ef3bdabb 100644 (file)
@@ -1188,6 +1188,7 @@ void BlueFS::_compact_log_async(std::unique_lock<std::mutex>& l)
   uint64_t discarded = 0;
   vector<bluefs_extent_t> old_extents;
   while (discarded < old_log_jump_to) {
+    assert(!log_file->fnode.extents.empty());
     bluefs_extent_t& e = log_file->fnode.extents.front();
     bluefs_extent_t temp = e;
     if (discarded + e.length <= old_log_jump_to) {