summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRadoslaw Zarzynski <rzarzyns@redhat.com>2022-11-18 17:12:10 +0100
committerRadoslaw Zarzynski <rzarzyns@redhat.com>2023-02-28 17:22:04 +0100
commit3fef67bf36ebbaf83f5b63e765ac7ec159c933ba (patch)
tree3acf80b6efb8ec3529e10099045cc7429624911d /src
parentcrimson/osd: initialize OSDriver in SnapMapper::record_purged_snaps() (diff)
downloadceph-3fef67bf36ebbaf83f5b63e765ac7ec159c933ba.tar.xz
ceph-3fef67bf36ebbaf83f5b63e765ac7ec159c933ba.zip
crimson/osd: convert SnapMapper::record_purged_snaps() to OSTransaction
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/osd/SnapMapper.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/osd/SnapMapper.cc b/src/osd/SnapMapper.cc
index 40f6052c6cc..515c50e1fb5 100644
--- a/src/osd/SnapMapper.cc
+++ b/src/osd/SnapMapper.cc
@@ -668,8 +668,9 @@ void SnapMapper::record_purged_snaps(
}
}
}
- t->omap_rmkeys(ch->cid, hoid, rm);
- t->omap_setkeys(ch->cid, hoid, m);
+ auto txn = backend.get_transaction(t);
+ txn.remove_keys(rm);
+ txn.set_keys(m);
dout(10) << __func__ << " rm " << rm.size() << " keys, set " << m.size()
<< " keys" << dendl;
}