]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: remove unnecessary OpsLogFile::flush_mutex
authorCasey Bodley <cbodley@redhat.com>
Mon, 25 Apr 2022 17:40:19 +0000 (13:40 -0400)
committerCasey Bodley <cbodley@redhat.com>
Tue, 26 Apr 2022 16:30:49 +0000 (12:30 -0400)
commitc77edb8d15e8fb9b17cdbd5af0db789cb2112c03
tree489e5cdc3d75a6c6333c74749f76762b3d31ad3e
parente7963b5765d3120ab65cb0b93ffceac47a1a3ff5
rgw: remove unnecessary OpsLogFile::flush_mutex

this mutex was only held by one function, OpsLogFile::flush(). this
private member function is only ever called from the background thread,
so doesn't need to be protected by a mutex

as a further cleanup, i renamed 'cond' and 'mutex' now that we don't
need to differentiate between different locks

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 279d664f8b25d2eeafac0b5d60e532dbcf56218f)
src/rgw/rgw_log.cc
src/rgw/rgw_log.h