]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/ConfigKeyService: dump: print placeholder value for binary blobs 21368/head
authorAbhishek Lekshmanan <abhishek@suse.com>
Fri, 8 Jun 2018 15:41:54 +0000 (17:41 +0200)
committerAbhishek Lekshmanan <abhishek@suse.com>
Fri, 8 Jun 2018 15:48:12 +0000 (17:48 +0200)
commitf82538718d39843064b9723992b590beb1720f97
tree5d01401a089a1935ccd04a84e4176fd24741f084
parentf53a2919f6afc496877816b81977fa2d2e68145d
mon/ConfigKeyService: dump: print placeholder value for binary blobs

JSON cannot express arbitrary binary blobs.  Instead of outputting invalid
and unparseable JSON, represent the value of blobs as something like
'<<< binary blob of length 12 >>>'.

Fixes: http://tracker.ceph.com/issues/23622
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 4669134b89ee1f7759fb59faef218da0880daa98)

Conflicts:
PendingReleaseNotes: 12.2.6 dropped, will be added in a seperate pr
src/mon/ConfigKeyService.cc (ConfigKeyService::store_dump does not take
            prefix argument in luminous)
src/mon/ConfigKeyService.cc