]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
src/mon/ConnectionTracker.cc: fix dump
authorKamoltat <ksirivad@redhat.com>
Tue, 30 Apr 2024 02:18:58 +0000 (02:18 +0000)
committerKamoltat <ksirivad@redhat.com>
Wed, 17 Jul 2024 22:22:53 +0000 (22:22 +0000)
commitc05d4e27160652541870e06ab9001f63040d3cc1
tree2720601812a5668ba289e1563cdb5389cbd877a9
parent103cd8e78bcfe7f69647013187c053c9ccb76685
src/mon/ConnectionTracker.cc: fix dump

Problem:

Currently, the ConnectionTracker::dump()
will dump a duplicate key which is not
ideal when you want to write a test that
converts the dump into a JSON since
JSON objects are key-value pairs where
each key must be unique.

Solution:
Use open_array_section and convert
`peer_scores` and `reports` into an
array instead.

Fixes: https://tracker.ceph.com/issues/65695
Signed-off-by: Kamoltat <ksirivad@redhat.com>
src/mon/ConnectionTracker.cc