]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Merge pull request #55536 from Matan-B/wip-crimson-snapmapper-get_next
authorMatan Breizman <mbreizma@redhat.com>
Wed, 6 Mar 2024 13:19:40 +0000 (15:19 +0200)
committerGitHub <noreply@github.com>
Wed, 6 Mar 2024 13:19:40 +0000 (15:19 +0200)
osd/SnapMapper: Crimson - fix OSDriver::get_next

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: chunmei-liu <chunmei.liu@intel.com>
1  2 
src/osd/SnapMapper.cc

index fa31cd76a368edbdd89003e7a1184c42902a1e2a,8f1be7052693cfeaac3078d3668c0e23fd346000..c168482722094e5f539329d41c4664e51541a0ed
@@@ -146,8 -145,9 +145,9 @@@ int OSDriver::get_next_or_current
    return interruptor::green_get(os->omap_get_values(
      ch, hoid, FuturizedStore::Shard::omap_keys_t{key}
    ).safe_then([&key, next_or_current] (FuturizedStore::Shard::omap_values_t&& vals) {
+     CRIMSON_DEBUG("OSDriver::get_next_or_current returning {}", key);
      assert(vals.size() == 1);
 -    *next_or_current = std::make_pair(key, std::move(vals[0]));
 +    *next_or_current = std::make_pair(key, std::move(vals.begin()->second));
      return 0;
    }, FuturizedStore::Shard::read_errorator::all_same_way(
      [next_or_current, &key, this] {