Skip to content

Commit

Permalink
using art 1.0.88 and fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
absolutelightning committed Jun 21, 2024
1 parent 8959af6 commit e6fdeda
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ go 1.21
toolchain go1.22.2

require (
github.com/absolutelightning/go-immutable-adaptive-radix v1.0.87
github.com/absolutelightning/go-immutable-adaptive-radix v1.0.88
github.com/hashicorp/go-uuid v1.0.3
)
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/absolutelightning/go-immutable-adaptive-radix v1.0.87 h1:Ev+GkNMFK996Mr2ntMecEpdUDJ6kMeEzo1XAZ2lW5vI=
github.com/absolutelightning/go-immutable-adaptive-radix v1.0.87/go.mod h1:+/nWgzXP46cOw2W+jLxu2lBmEny3bG1RqFXPKTWTLMU=
github.com/absolutelightning/go-immutable-adaptive-radix v1.0.88 h1:q8QUrlNy1ub4Pavd+LYMpzZNQj+N55qBJcYNrkVY0aw=
github.com/absolutelightning/go-immutable-adaptive-radix v1.0.88/go.mod h1:+/nWgzXP46cOw2W+jLxu2lBmEny3bG1RqFXPKTWTLMU=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8=
Expand Down
4 changes: 2 additions & 2 deletions txn.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (txn *Txn) readableIndex(table, index string) *adaptive.Txn[any] {
key := tableIndex{table, index}
exist, ok := txn.modified[key]
if ok {
return exist.Clone()
return exist.Clone(false)
}
}

Expand Down Expand Up @@ -1062,7 +1062,7 @@ func (txn *Txn) Snapshot() *Txn {

snapshot := &Txn{
db: txn.db,
rootTxn: txn.rootTxn.Clone(),
rootTxn: txn.rootTxn.Clone(true),
}

// Commit sub-transactions into the snapshot
Expand Down

0 comments on commit e6fdeda

Please sign in to comment.