mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-11-26 20:54:08 +00:00
* feat: implement `KeyRwLock` * refactor: use KeyRwLock instead of LockMap * refactor: use StringKey instead of String * chore: remove redundant code * refactor: cleanup KeyRwLock staled locks before granting new lock * feat: clean staled locks manually * feat: sort lock key in lexicographically order * feat: ensure the ref count before dropping the rwlock * feat: add more tests for rwlock * feat: drop the key guards first * feat: drops the key guards in the reverse order * chore: apply suggestions from CR * chore: apply suggestions from CR * chore: apply suggestions from CR