]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
log: there is no need to flush the log buf
authorXiubo Li <xiubli@redhat.com>
Sun, 3 Nov 2019 07:20:15 +0000 (12:50 +0530)
committerXiubo Li <xiubli@redhat.com>
Mon, 18 Nov 2019 00:34:21 +0000 (19:34 -0500)
commit4fe730d58a1367cec336d9ca144c5fba3b3f0336
tree58fcf818632e7ca011f1360d83ffbc32675ee75b
parent571671501bc1430bdb44f4485d4b53160b3a212a
log: there is no need to flush the log buf

The m_log_buf just a buffer for the log messages in _flush() before
flushing them to the log files and the buffer should already be
emptied by the _flush() routine. It makes no sense to flush the empty
buffer again here.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
src/log/Log.cc