]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Log::reopen_log_file: take m_flush_mutex 5348/head
authorSamuel Just <sjust@redhat.com>
Fri, 24 Jul 2015 22:38:18 +0000 (15:38 -0700)
committerSamuel Just <sjust@redhat.com>
Fri, 24 Jul 2015 22:38:20 +0000 (15:38 -0700)
commit8778ab3a1ced7fab07662248af0c773df759653d
treeb0f09df933ddc497009ce47bcfcacf9cbb2ff5a9
parent2746f59da45002ab12c73ab4b92b37d353827c6b
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>
src/log/Log.cc