shard: disable double flush and improve kmod vm

This commit is contained in:
Miroslav Crnic
2024-04-05 16:37:34 +01:00
parent d44b331739
commit 0a6e4be683
3 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -1591,10 +1591,10 @@ public:
void flush(bool sync) {
ROCKS_DB_CHECKED(_db->FlushWAL(sync));
_maybeLogStatus();
}
void processIncomingMessages(std::vector<LogsDBRequest>& requests, std::vector<LogsDBResponse>& responses) {
_maybeLogStatus();
for(auto& resp : responses) {
auto request = _reqResp.getRequest(resp.header.requestId);
if (request == nullptr) {
+2 -1
View File
@@ -892,7 +892,8 @@ public:
ALWAYS_ASSERT(_inFlightEntries.size() == LogsDB::IN_FLIGHT_APPEND_WINDOW);
}
_shared.shardDB.flush(true);
_logsDB->flush(true);
// not needed as we just flushed and apparently it does actually flush again
// _logsDB->flush(true);
sendMessages();
}