]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: record next_offs when offset is not sequential.
authorXiangyang Yu <penglaiyxy@gmail.com>
Tue, 23 Jul 2019 01:59:30 +0000 (09:59 +0800)
committerXiangyang Yu <penglaiyxy@gmail.com>
Mon, 29 Jul 2019 02:41:33 +0000 (10:41 +0800)
Signed-off-by: Xiangyang Yu <penglaiyxy@gmail.com>
src/os/bluestore/bluestore_types.cc

index 4d7e14afd863279e0d1e2fe0a344a8f0fea40818..a2b421596dedaa7edaf645e019db055de1177fe4 100644 (file)
@@ -421,6 +421,7 @@ bool bluestore_blob_use_tracker_t::put(
        if (release_units) {
           if (release_units->empty() || next_offs != pos * au_size) {
            release_units->emplace_back(pos * au_size, au_size);
+            next_offs = pos * au_size;
           } else {
             release_units->back().length += au_size;
           }