server: Add verification of whether lock was called within out outside of apply

This commit is contained in:
Marek Siarkowicz
2022-04-05 14:32:22 +02:00
parent 6c974a3e31
commit 1d3517020b
5 changed files with 164 additions and 2 deletions

View File

@ -904,8 +904,10 @@ func (b *fakeBatchTx) UnsafeDelete(bucket backend.Bucket, key []byte) {
func (b *fakeBatchTx) UnsafeForEach(bucket backend.Bucket, visitor func(k, v []byte) error) error {
return nil
}
func (b *fakeBatchTx) Commit() {}
func (b *fakeBatchTx) CommitAndStop() {}
func (b *fakeBatchTx) Commit() {}
func (b *fakeBatchTx) CommitAndStop() {}
func (b *fakeBatchTx) LockInsideApply() {}
func (b *fakeBatchTx) LockOutsideApply() {}
type fakeBackend struct {
tx *fakeBatchTx