From ced0d6c5a071d5eb08255a3696251ec533967619 Mon Sep 17 00:00:00 2001 From: Ashesh Vidyut <134911583+absolutelightning@users.noreply.github.com> Date: Thu, 30 May 2024 19:38:15 +0530 Subject: [PATCH] Absl (#53) * fix go mod * Dev to Main (#39) * try fixing race * Revert "try fixing race" This reverts commit 02ff901eaa1f51d4c484e1377f4487c779fdc346. * using lock for set child and get child * using locks only for set child and get child * fix nil mu * fix delete * using locks to set attribute of node * fix memdb tests * tracking channel of child changes * removed process lazy redundant * fix nil check * Fix get watch bug * go fmt * some minor fixes * merge main * fix go mod * fix go mod * fmt * Dev to Main (#40) * try fixing race * Revert "try fixing race" This reverts commit 02ff901eaa1f51d4c484e1377f4487c779fdc346. * using lock for set child and get child * using locks only for set child and get child * fix nil mu * fix delete * using locks to set attribute of node * fix memdb tests * tracking channel of child changes * removed process lazy redundant * fix nil check * Fix get watch bug * go fmt * some minor fixes * merge main * fix go mod * fix go mod * some minor fixes * some minor fixes * fmt * Dev to main (#41) * try fixing race * Revert "try fixing race" This reverts commit 02ff901eaa1f51d4c484e1377f4487c779fdc346. * using lock for set child and get child * using locks only for set child and get child * fix nil mu * fix delete * using locks to set attribute of node * fix memdb tests * tracking channel of child changes * removed process lazy redundant * fix nil check * Fix get watch bug * go fmt * some minor fixes * merge main * fix go mod * fix go mod * some minor fixes * some minor fixes * fmt * some fixes * Dev to Main (#42) * try fixing race * Revert "try fixing race" This reverts commit 02ff901eaa1f51d4c484e1377f4487c779fdc346. * using lock for set child and get child * using locks only for set child and get child * fix nil mu * fix delete * using locks to set attribute of node * fix memdb tests * tracking channel of child changes * removed process lazy redundant * fix nil check * Fix get watch bug * go fmt * some minor fixes * merge main * fix go mod * fix go mod * some minor fixes * some minor fixes * fmt * some fixes * fix seek prefix watch * SeekPrefix Watch Fix (#43) * try fixing race * Revert "try fixing race" This reverts commit 02ff901eaa1f51d4c484e1377f4487c779fdc346. * using lock for set child and get child * using locks only for set child and get child * fix nil mu * fix delete * using locks to set attribute of node * fix memdb tests * tracking channel of child changes * removed process lazy redundant * fix nil check * Fix get watch bug * go fmt * some minor fixes * merge main * fix go mod * fix go mod * some minor fixes * some minor fixes * fmt * some fixes * fix seek prefix watch * bug fix * some fixes * track mutation fixes --- helpers.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/helpers.go b/helpers.go index 7fc57c6..4fdd0a0 100644 --- a/helpers.go +++ b/helpers.go @@ -76,6 +76,7 @@ func (t *Txn[T]) addChild4(n Node[T], c byte, child Node[T]) Node[T] { n.setNumChildren(n.getNumChildren() + 1) return n } else { + t.trackChannel(n) newNode := t.allocNode(node16) // Copy the child pointers and the key map copy(newNode.getChildren()[:], n.getChildren()[:n.getNumChildren()]) @@ -102,6 +103,7 @@ func (t *Txn[T]) addChild16(n Node[T], c byte, child Node[T]) Node[T] { n.setNumChildren(n.getNumChildren() + 1) return n } else { + t.trackChannel(n) newNode := t.allocNode(node48) // Copy the child pointers and populate the key map copy(newNode.getChildren()[:], n.getChildren()[:n.getNumChildren()]) @@ -125,6 +127,7 @@ func (t *Txn[T]) addChild48(n Node[T], c byte, child Node[T]) Node[T] { n.setNumChildren(n.getNumChildren() + 1) return n } else { + t.trackChannel(n) newNode := t.allocNode(node256) for i := 0; i < 256; i++ { if n.getKeyAtIdx(i) != 0 {