]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test/cbjournal: fix wrong device id
authormyoungwon oh <ohmyoungwon@gmail.com>
Fri, 6 May 2022 06:45:13 +0000 (15:45 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Thu, 19 May 2022 00:48:44 +0000 (09:48 +0900)
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
src/test/crimson/seastore/test_cbjournal.cc

index eba3246151e354ff0d893906ee27c6bf3de20822..6b38eae71d748655e316fc3bed29e04a181af220 100644 (file)
@@ -37,7 +37,10 @@ std::optional<record_t> decode_record(
   decode(r_header, bliter);
   logger().debug(" decode_record mdlength {} records {}",
                  r_header.mdlength, r_header.records);
-  auto del_infos = try_decode_deltas(r_header, bl, paddr_t{});
+  device_id_t d_id = 1 << (std::numeric_limits<device_id_t>::digits - 1);
+
+  auto del_infos = try_decode_deltas(r_header, bl,
+    paddr_t::make_blk_paddr(d_id, 0));
   for (auto &iter : *del_infos) {
     for (auto r : iter.deltas) {
       record.deltas.push_back(r.second);