]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
compressor: fix Mutex::Locker used is not correct 13935/head
authorhechuang <hechuang@xsky.com>
Mon, 13 Mar 2017 07:25:37 +0000 (15:25 +0800)
committerhechuang <hechuang@xsky.com>
Mon, 13 Mar 2017 07:34:34 +0000 (15:34 +0800)
Signed-off-by: hechuang <hechuang@xsky.com>
src/compressor/AsyncCompressor.h

index 3c453f82ceb388009100a334b76fc80e5a8b28f5..81321fdd511e50b9e6fdc59c621d773b38234b4d 100644 (file)
@@ -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;
         }