arnaucube
arnaucube/arboPublic Self-hosted repository
Fix: Use GetNLeafsWithTx in incNLeafs
Eduard S edu@aragonlabs.com
Tue, 31 Aug 2021 14:40:35 +0200
commit

baa1d7af48c75ca0f9dbab2048506686bdefac8c

parent

4836f1975563878e00631da3e5cc078aff3c2a9b

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M tree.go → tree.go

@@ -807,7 +807,7 @@ return false, nil

} func (t *Tree) incNLeafs(wTx db.WriteTx, nLeafs int) error { - oldNLeafs, err := t.GetNLeafs() + oldNLeafs, err := t.GetNLeafsWithTx(wTx) if err != nil { return err }