]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw/mdlog: add complete_entry() for most common usage
authorCasey Bodley <cbodley@redhat.com>
Fri, 5 Jan 2024 15:26:00 +0000 (10:26 -0500)
committerCasey Bodley <cbodley@redhat.com>
Tue, 5 Mar 2024 17:55:25 +0000 (12:55 -0500)
commit7827b2527f6b656331ae337ebc196c17b2716e48
treefd3807c23da1b87be862f7a10d71bd83425df18c
parent6000732706890fa5d276d22972d1d83be32bb5c8
rgw/mdlog: add complete_entry() for most common usage

metadata sync ignores entries other than MDLOG_STATUS_COMPLETE, so we
don't need to write separate prepare/complete entries. metadata
mutations can just call complete_entry() on success

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/services/svc_mdlog.cc
src/rgw/services/svc_mdlog.h