]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Log::reopen_log_file: take m_flush_mutex
authorSamuel Just <sjust@redhat.com>
Fri, 24 Jul 2015 22:38:18 +0000 (15:38 -0700)
committerKen Dreyer <kdreyer@redhat.com>
Wed, 29 Jul 2015 19:45:13 +0000 (13:45 -0600)
commitd1d96a1dec31bfaee60ae30797b8a694697257e5
tree02296337ba9a8b849b4a3027e9344bf00b6ae95e
parent944951aae2783417100ff0f1078a20bcdcdb605d
Log::reopen_log_file: take m_flush_mutex

Otherwise, _flush() might continue to write to m_fd after it's closed.
This might cause log data to go to a data object if the filestore then
reuses the fd during that time.

Fixes: #12465
Backport: firefly, hammer
Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit 8778ab3a1ced7fab07662248af0c773df759653d)
(cherry picked from commit 154f18ce3e52094fe84b058565a865ed97b079d6)
src/log/Log.cc