]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tools/rados: flush formatter periodically during json output of `rados ls` 37739/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Wed, 21 Oct 2020 14:32:30 +0000 (10:32 -0400)
committerJ. Eric Ivancich <ivancich@redhat.com>
Wed, 21 Oct 2020 18:19:31 +0000 (14:19 -0400)
commit1548ef7a97559f17023f17842dab51d47cef89df
tree85d24ed6a1be03528640a821da8d32e19486206b
parent6bd8fa86796ed3e1a40e13491340c9f1b4a0f18f
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>
src/tools/rados/rados.cc