mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 18:35:46 +02:00
fix(server): Change WaitForCallbacks mem order (#914)
Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
This commit is contained in:
parent
1fc7ef5eaa
commit
64e10f083e
1 changed files with 1 additions and 3 deletions
|
@ -397,9 +397,7 @@ class Transaction {
|
|||
void WaitForShardCallbacks() {
|
||||
run_ec_.await([this] { return 0 == run_count_.load(std::memory_order_relaxed); });
|
||||
|
||||
// store operations below can not be ordered above the fence
|
||||
std::atomic_thread_fence(std::memory_order_release);
|
||||
seqlock_.fetch_add(1, std::memory_order_relaxed);
|
||||
seqlock_.fetch_add(1, std::memory_order_acq_rel);
|
||||
}
|
||||
|
||||
// Log command in shard's journal, if this is a write command with auto-journaling enabled.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue