mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 09:55:45 +02:00
fix: reenable macos builds (#3399)
* fix: reenable macos builds Also, add debug function that prints local state if deadlocks occure. * fix: free cold memory for non-cache mode as well * chore: disable FreeMemWithEvictionStep again Because it heavily affects the performance when performing evictions. --------- Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
parent
1a8c12225b
commit
776bd79381
6 changed files with 51 additions and 14 deletions
|
@ -718,6 +718,13 @@ void Transaction::ScheduleInternal() {
|
|||
run_barrier_.Dec();
|
||||
} else {
|
||||
IterateActiveShards([cb](const auto& sd, ShardId i) { shard_set->Add(i, cb); });
|
||||
|
||||
// Add this debugging function to print more information when we experience deadlock
|
||||
// during tests.
|
||||
ThisFiber::PrintLocalsCallback locals([&] {
|
||||
return absl::StrCat("unique_shard_cnt_: ", unique_shard_cnt_,
|
||||
" run_barrier_cnt: ", run_barrier_.DEBUG_Count(), "\n");
|
||||
});
|
||||
run_barrier_.Wait();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue