aboutsummaryrefslogtreecommitdiff
path: root/rwtransaction.go
diff options
context:
space:
mode:
Diffstat (limited to 'rwtransaction.go')
-rw-r--r--rwtransaction.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/rwtransaction.go b/rwtransaction.go
index 84e6425..e22c766 100644
--- a/rwtransaction.go
+++ b/rwtransaction.go
@@ -20,7 +20,7 @@ func (t *RWTransaction) init(db *DB) {
t.Transaction.init(db)
t.pages = make(map[pgid]*page)
- // Increment the transaction id.
+ // Increment the transaction id.
t.meta.txnid += txnid(1)
}
@@ -114,7 +114,7 @@ func (t *RWTransaction) Put(name string, key []byte, value []byte) error {
// Move cursor to correct position.
c := b.cursor()
- c.Get(key)
+ c.Seek(key)
// Insert the key/value.
c.node(t).put(key, key, value, 0)
@@ -133,7 +133,7 @@ func (t *RWTransaction) Delete(name string, key []byte) error {
// Move cursor to correct position.
c := b.cursor()
- c.Get(key)
+ c.Seek(key)
// Delete the node if we have a matching key.
c.node(t).del(key)