mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00

Because the leases were sorted inside UnsafeLeases() the lessor mutex ended up being locked while the whole map was sorted. This pulls the soring outside of the lock, per feedback on https://github.com/coreos/etcd/pull/9699