]> git-server-git.apps.pok.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>
Wed, 8 Jun 2022 16:21:41 +0000 (12:21 -0400)
commit5e6c5bcaaf9c1e793a6cea0a207fad21e6034d8d
treea7d1c3332b6da510d30f2cdc6e8867788a6e0ee9
parenta90bffb8104ff92573399458127fb065f7923a3d
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