]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tools/rados: flush formatter periodically during json output of `rados ls` 37834/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Wed, 21 Oct 2020 14:32:30 +0000 (10:32 -0400)
committerNathan Cutler <ncutler@suse.com>
Tue, 27 Oct 2020 08:22:07 +0000 (09:22 +0100)
commitb0f06de81776d20741d4cdda38b606ee612f0262
tree1bc53128ea3f1a85a35d9d307457b2b65c8c04b3
parenta2010cbc82ce53c909c3d230726d633f552e43a1
tools/rados: flush formatter periodically during json output of `rados ls`

While `rados ls` is emitting object info through a json formatter,
flush the formatter after there are at least 4096 bytes are buffered
for output.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit 1548ef7a97559f17023f17842dab51d47cef89df)
src/tools/rados/rados.cc