]> 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>
Mon, 25 Apr 2022 18:12:53 +0000 (14:12 -0400)
commit279d664f8b25d2eeafac0b5d60e532dbcf56218f
treeeb4f19130ea7d2620633b0594e2ec0129a752e1c
parentcf6f99e67a6dbbc4e39d9e1fda32356c18051f5a
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>
src/rgw/rgw_log.cc
src/rgw/rgw_log.h