mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
use readTx in (*store).restore
This commit is contained in:
parent
76543d06ce
commit
a3650db574
@ -330,8 +330,8 @@ func (s *store) restore() error {
|
||||
keyToLease := make(map[string]lease.LeaseID)
|
||||
|
||||
// restore index
|
||||
tx := s.b.BatchTx()
|
||||
tx.LockOutsideApply()
|
||||
tx := s.b.ReadTx()
|
||||
tx.Lock()
|
||||
|
||||
finishedCompact, found := UnsafeReadFinishedCompact(tx)
|
||||
if found {
|
||||
|
Loading…
x
Reference in New Issue
Block a user