check for null CQEs to silence clang-analyzer

This commit is contained in:
Saulius Valatka 2023-01-05 13:56:55 +02:00
parent 4b2fefef8b
commit 64accde7bd

View File

@ -230,6 +230,12 @@ void IOUringReader::monitorRing()
break;
}
if (!cqe)
{
LOG_ERROR(log, "Unexpectedly got a null CQE, continuing");
continue;
}
// it is safe to re-submit events once we take the lock here
std::unique_lock lock{mutex};