Skip to content

Commit

Permalink
think this fixes dropped ref
Browse files Browse the repository at this point in the history
  • Loading branch information
max-hoffman committed May 22, 2024
1 parent 5c6afbe commit 0a97f9d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 0 additions & 3 deletions go/store/prolly/tree/blob_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,6 @@ func (b *BlobBuilder) Reset() {
b.subtrees = nil
b.lastN = Node{}
b.levelCap = 0
for i := range b.keys {
b.keys[i] = zeroKey
}
}

// Init calculates tree dimensions for a given blob.
Expand Down
4 changes: 1 addition & 3 deletions go/store/prolly/tree/node_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,7 @@ func (ns nodeStore) Pool() pool.BuffPool {
// BlobBuilder implements NodeStore.
func (ns nodeStore) BlobBuilder() *BlobBuilder {
bb := ns.bbp.Get().(*BlobBuilder)
if bb.ns == nil {
bb.SetNodeStore(ns)
}
bb.SetNodeStore(ns)
return bb
}

Expand Down

0 comments on commit 0a97f9d

Please sign in to comment.