make endTxnProtect idempotent
This commit is contained in:
parent
e859942fa4
commit
bd436ab9de
@ -1028,7 +1028,9 @@ func (s *SplitStore) endTxnProtect() {
|
||||
s.txnLk.Lock()
|
||||
defer s.txnLk.Unlock()
|
||||
|
||||
if s.txnProtect != nil {
|
||||
_ = s.txnProtect.Close()
|
||||
}
|
||||
s.txnActive = false
|
||||
s.txnProtect = nil
|
||||
s.txnMissing = nil
|
||||
|
Loading…
Reference in New Issue
Block a user