Fixes after static analyser

This commit is contained in:
Miroslav Crnic
2025-09-23 09:40:10 +00:00
committed by Francesco Mazzoli
parent 1a66e1d2e1
commit 6724f05691
3 changed files with 8 additions and 6 deletions
+1 -2
View File
@@ -288,7 +288,7 @@ public:
ROCKS_DB_CHECKED(_sharedDb.db()->Write({}, &batch));
}
void writeLogEntry(const LogsDBLogEntry entry) {
void writeLogEntry(const LogsDBLogEntry& entry) {
_maybeRotate();
auto& partition = _getPartitionForIdx(entry.idx);
@@ -1701,7 +1701,6 @@ public:
}
}
for(auto& req : requests) {
ALWAYS_ASSERT(req.msg.body.kind() == req.msg.body.kind());
switch (req.msg.body.kind()) {
case LogMessageKind::ERROR:
LOG_ERROR(_env, "Bad request %s", req);