Merge pull request #69 from mingnus/master-fix

[block-cache] Fix error handling in reading libaio events
This commit is contained in:
Joe Thornber 2016-10-06 17:20:18 +01:00 committed by GitHub
commit 687880c1fc

View File

@ -213,7 +213,7 @@ block_cache::wait_io()
if (e.res == block_size_ << SECTOR_SHIFT) if (e.res == block_size_ << SECTOR_SHIFT)
complete_io(*b, 0); complete_io(*b, 0);
else if (e.res < 0) else if (static_cast<long>(e.res) < 0)
complete_io(*b, e.res); complete_io(*b, e.res);
else { else {