From: hechuang Date: Mon, 13 Mar 2017 07:25:37 +0000 (+0800) Subject: compressor: fix Mutex::Locker used is not correct X-Git-Tag: v12.0.1~79^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F13935%2Fhead;p=ceph.git compressor: fix Mutex::Locker used is not correct Signed-off-by: hechuang --- diff --git a/src/compressor/AsyncCompressor.h b/src/compressor/AsyncCompressor.h index 3c453f82ceb3..81321fdd511e 100644 --- a/src/compressor/AsyncCompressor.h +++ b/src/compressor/AsyncCompressor.h @@ -78,7 +78,7 @@ class AsyncCompressor { if (item->status.compare_and_swap(WAIT, WORKING)) { break; } else { - Mutex::Locker (async_compressor->job_lock); + Mutex::Locker l(async_compressor->job_lock); async_compressor->jobs.erase(item->id); item = NULL; }