Skip to content

Commit 7a488a8

Browse files
committed
Serialize writes due to races causing test failures
1 parent 8c4fa5d commit 7a488a8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/db.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3044,12 +3044,15 @@ void redisDbPersistentData::commitChanges(const redisDbPersistentDataSnapshot **
30443044
}
30453045
if (m_spstorage != nullptr)
30463046
{
3047+
m_spstorage->endWriteBatch();
3048+
#if 0
30473049
auto *tok = m_spstorage->begin_endWriteBatch(serverTL->el, storageLoadCallback);
30483050
if (tok != nullptr)
30493051
{
30503052
tok->db = this;
30513053
tok->type = StorageToken::TokenType::BatchWrite;
30523054
}
3055+
#endif
30533056
}
30543057
}
30553058

0 commit comments

Comments
 (0)