Skip to content

Commit

Permalink
compressor: fix Mutex::Locker used is not correct
Browse files Browse the repository at this point in the history
Signed-off-by: hechuang <hechuang@xsky.com>
  • Loading branch information
hechuang committed Mar 13, 2017
1 parent 04d524b commit 7da62dc
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 7da62dc

Please sign in to comment.