Skip to content

Commit

Permalink
Merge pull request #13935 from chuang-he/fix_mutex_locker_of_compressor
Browse files Browse the repository at this point in the history
compressor: fix Mutex::Locker used is not correct

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
  • Loading branch information
tchaikov committed Mar 15, 2017
2 parents c8fa9a4 + 7da62dc commit 3b65b89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compressor/AsyncCompressor.h
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3b65b89

Please sign in to comment.