]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: Swift SLO size_bytes member is optional 22967/head
authorMatt Benjamin <mbenjamin@redhat.com>
Mon, 9 Jul 2018 21:21:22 +0000 (17:21 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Tue, 10 Jul 2018 15:14:31 +0000 (11:14 -0400)
commitf7be1e0597234debab771a3766e7ca73a70cb78f
tree4b8d04261bdc2ab7549583ff5312f455440fe1ce
parent121f0f43c0c16f577b6f29ae71b274c0764c5be1
rgw: Swift SLO size_bytes member is optional

For various reasons, the current SLO manifest processing logic
in RGWGetObj cannot deal properly with a manifest stored without
explicit value(s) for size_bytes, but size_bytes is optional.

Work around this by storing the component values of size_bytes for
each segment--or fail if any is invalid, as this is also correct
Swift behavior.

Fixes (part 2 of): http://tracker.ceph.com/issues/18936

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_op.cc
src/rgw/rgw_op.h
src/rgw/rgw_rest_swift.cc
src/rgw/rgw_rest_swift.h