Skip to content

Commit

Permalink
Serialize writes due to races causing test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnSully committed Mar 5, 2024
1 parent 8c4fa5d commit 7a488a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/db.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit 7a488a8

Please sign in to comment.