mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-15 08:41:02 +00:00
.
This commit is contained in:
parent
eff54f49a6
commit
1a8989a69b
2 changed files with 1 additions and 4 deletions
|
|
@ -8303,7 +8303,7 @@ func (e *executor) executeDeleteRecordFromShard(ctx context.Context, qcx *Qcx, i
|
|||
return
|
||||
}
|
||||
|
||||
qcx.Finish() // have to release the tx in order for a snapshot to be able to occur
|
||||
qcx.Abort() // have to release the tx in order for a snapshot to be able to occur
|
||||
qcx.Reset()
|
||||
return DeleteRowsWithFlow(ctx, src, idx, shard, true)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -158,9 +158,6 @@ func (q *Qcx) Abort() {
|
|||
func (q *Qcx) Reset() {
|
||||
q.mu.Lock()
|
||||
defer q.mu.Unlock()
|
||||
if !q.done {
|
||||
vprint.PanicOn("must call Qcx.Abort() or Qcx.Finish() before calling Reset().")
|
||||
}
|
||||
q.unprotected_reset()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue