]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix rgw_data_sync_info::json_decode()
authorCasey Bodley <cbodley@redhat.com>
Mon, 18 Feb 2019 23:15:11 +0000 (18:15 -0500)
committerPrashant D <pdhange@redhat.com>
Mon, 25 Feb 2019 00:05:18 +0000 (19:05 -0500)
commit914a81dca59bc772c03ca4aa3c23b6f00bba6979
tree8fac03ccea841abf2795110d0f3e5640112528df
parentf3178d64c0a4a93b2eb15ad3cb8697138da20c6e
rgw: fix rgw_data_sync_info::json_decode()

this was trying to decode a 'uint64_t instance_id' into the wrong
variable 'uint32_t num_shards'

datalog trimming relies on this json format, and decode failures here
prevent any trimming from taking place

Fixes: http://tracker.ceph.com/issues/38373
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 2b51d52bab2bd95834524316d5e71ff362aa0507)
src/rgw/rgw_data_sync.h