From 7a488a83e9fdcd22eb50ed3b2898fa66432ed2a8 Mon Sep 17 00:00:00 2001 From: John Sully Date: Tue, 5 Mar 2024 03:04:10 +0000 Subject: [PATCH] Serialize writes due to races causing test failures --- src/db.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/db.cpp b/src/db.cpp index edf9a0746..f49482374 100644 --- a/src/db.cpp +++ b/src/db.cpp @@ -3044,12 +3044,15 @@ void redisDbPersistentData::commitChanges(const redisDbPersistentDataSnapshot ** } if (m_spstorage != nullptr) { + m_spstorage->endWriteBatch(); +#if 0 auto *tok = m_spstorage->begin_endWriteBatch(serverTL->el, storageLoadCallback); if (tok != nullptr) { tok->db = this; tok->type = StorageToken::TokenType::BatchWrite; } +#endif } }