Skip to content

Commit

Permalink
using iradix 1.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
absolutelightning committed Jul 20, 2024
1 parent d728330 commit 8c883ef
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ go 1.22.4

toolchain go1.22.5

require github.com/absolutelightning/go-immutable-radix v1.0.7
require github.com/absolutelightning/go-immutable-radix v1.0.8

require github.com/hashicorp/golang-lru v0.5.0 // indirect
7 changes: 3 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
github.com/absolutelightning/go-immutable-radix v1.0.6/go.mod h1:d1zae/VqcWHxzHWfS3slhyNQ4ecJeQSZE1j5J6ywEIU=
github.com/absolutelightning/go-immutable-radix v1.0.7 h1:RsNmKOEGDCdDuZiurtmgYzXxy8DdXpFJvSfHUojjfAU=
github.com/absolutelightning/go-immutable-radix v1.0.7/go.mod h1:d1zae/VqcWHxzHWfS3slhyNQ4ecJeQSZE1j5J6ywEIU=
github.com/absolutelightning/go-immutable-radix v1.0.8 h1:FGtbJ+k6nMRlsKIXX7QJsqLK3wwpY/xEy5xD62PcIoA=
github.com/absolutelightning/go-immutable-radix v1.0.8/go.mod h1:d1zae/VqcWHxzHWfS3slhyNQ4ecJeQSZE1j5J6ywEIU=
github.com/hashicorp/go-uuid v1.0.0 h1:RS8zrF7PhGwyNPOtxSClXXj9HA8feRnJzgnI1RJCSnM=
github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
github.com/hashicorp/golang-lru v0.5.0 h1:CL2msUPvZTLb5O648aiLNJw3hnBxN2+1Jq8rCOH9wdo=
github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
4 changes: 2 additions & 2 deletions txn.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (txn *Txn) readableIndex(table, index string) *iradix.Txn {
path := indexPath(table, index)
raw, _ := txn.rootTxn.Get(path)
tree := raw.(*iradix.Tree)
tree.Root().SetSnapShotNode(txn.rootTxn.Root().GetSnapshotNode())
tree.Root().SetSnapshot(txn.rootTxn.Root().GetSnapshot())
indexTxn := tree.Txn()
return indexTxn
}
Expand All @@ -95,7 +95,7 @@ func (txn *Txn) writableIndex(table, index string) *iradix.Txn {
path := indexPath(table, index)
raw, _ := txn.rootTxn.Get(path)
tree := raw.(*iradix.Tree)
tree.Root().SetSnapShotNode(txn.rootTxn.Root().GetSnapshotNode())
tree.Root().SetSnapshot(txn.rootTxn.Root().GetSnapshot())
indexTxn := tree.Txn()

// If we are the primary DB, enable mutation tracking. Snapshots should
Expand Down

0 comments on commit 8c883ef

Please sign in to comment.