]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tools/rados: flush formatter periodically during json output of `rados ls` 37835/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:23:28 +0000 (09:23 +0100)
commit80f83f497dd88a519ea1f88e615686ad4e126654
treeb51e2e1bb8fb41159f8d94c885c9a0f5990f1b37
parentb6d6e254979727c5d5ae5386f42bf220a508269a
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