]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: set sync_from_all as true when no value is seen
authorAbhishek Lekshmanan <abhishek@suse.com>
Tue, 14 Nov 2017 16:39:16 +0000 (17:39 +0100)
committerAbhishek Lekshmanan <abhishek@suse.com>
Wed, 15 Nov 2017 17:53:29 +0000 (18:53 +0100)
commit7c0b6c0cf5cf9fcd2a02da43cc5e8b09f6e34ee2
treef315212f69199eda985288d0456923befd6c70b8
parentaf9ea5e71523250936836ac9ded7019b8c8eeab2
rgw: set sync_from_all as true when no value is seen

In order to support jewel-luminous multisite scenarios where when a
jewel cluster is the master, the sync-from-all json field wouldn't be
set leading to the secondary not syncing data as this value can't be
overriden to true, so defaulting the value of sync_from_all to true when
we don't encounter it in the json

Fixes: http://tracker.ceph.com/issues/22062
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit e0116fa42020ff5c0d78101b9b3b15e62236b4b8)
src/common/ceph_json.h
src/rgw/rgw_json_enc.cc