mirror of
https://github.com/XTXMarkets/ternfs.git
synced 2026-05-01 23:29:15 -05:00
Fixes after static analyser
This commit is contained in:
committed by
Francesco Mazzoli
parent
1a66e1d2e1
commit
6724f05691
+1
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user