mirror of https://github.com/etcd-io/bbolt.git
Update Tx.Commit documentation
Signed-off-by: Cenk Alti <cenkalti@gmail.com>pull/499/head
parent
160cd29ec3
commit
daff030646
2
tx.go
2
tx.go
|
@ -136,7 +136,7 @@ func (tx *Tx) OnCommit(fn func()) {
|
|||
tx.commitHandlers = append(tx.commitHandlers, fn)
|
||||
}
|
||||
|
||||
// Commit writes all changes to disk and updates the meta page.
|
||||
// Commit writes all changes to disk, updates the meta page and closes the transaction.
|
||||
// Returns an error if a disk write error occurs, or if Commit is
|
||||
// called on a read-only transaction.
|
||||
func (tx *Tx) Commit() error {
|
||||
|
|
Loading…
Reference in New Issue