mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
chore: LockTable tracks fingerprints of keys (#2839)
* chore: LockTable tracks fingerprints of keys It's a first step that will probably simplify dependencies in many places where we need to keep key strings for that. A second step will be to reduce the CPU load of multi-key operations like MSET and precompute Fingerprints once. --------- Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
parent
56a7f85e39
commit
da5c51d1dd
11 changed files with 59 additions and 57 deletions
|
@ -758,7 +758,7 @@ auto EngineShard::AnalyzeTxQueue() const -> TxQueueInfo {
|
|||
info.contended_locks++;
|
||||
if (lock.ContentionScore() > info.max_contention_score) {
|
||||
info.max_contention_score = lock.ContentionScore();
|
||||
info.max_contention_lock_name = key.view();
|
||||
info.max_contention_lock = key;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue