make endTxnProtect idempotent

This commit is contained in:
vyzo 2021-07-05 23:51:10 +03:00
parent e859942fa4
commit bd436ab9de

View File

@ -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