]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: radosgw-admin errors if marker not specified on data/mdlog trim 42380/head
authorAdam C. Emerson <aemerson@redhat.com>
Fri, 16 Jul 2021 15:20:39 +0000 (11:20 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Fri, 16 Jul 2021 15:51:22 +0000 (11:51 -0400)
commit4cb6fcf7f4e9548a8a0dd017b49a6ea23bedffd6
treef48f717fa7b6c5a142114bdbb2b05ebe6e875d94
parentc79942df42bd102141c521557f542c2e4ee5fe2a
rgw: radosgw-admin errors if marker not specified on data/mdlog trim

Check that a marker was specified and trim if we don't have one.

Also: In a world where we're parsing for generation, it doesn't really
make sense to have a 'no marker specified' as separate from a marker
that is just an empty string.

Also: Successful datalog trim returns zero, not
-ENODATA, and radosgw-admin should expect this.

Fixes: https://tracker.ceph.com/issues/51712
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/rgw/rgw_admin.cc
src/rgw/rgw_datalog.cc
src/rgw/rgw_datalog.h
src/rgw/rgw_log_backing.h