]> 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)
committerSage Weil <sage@redhat.com>
Wed, 29 Jul 2015 13:33:33 +0000 (09:33 -0400)
commitc4872ddfac1415f778536c95dccc4a7c168a5454
tree3dd5f45d6c3bd93cfa3921f338ca882e4e329fd3
parente95787216b8c84da98810eb5dccb09941ad9fa2f
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)
src/log/Log.cc