mirror of
https://github.com/etcd-io/bbolt.git
synced 2025-07-08 11:38:05 +00:00
Merge pull request #499 from cenkalti/tx-doc
Update Tx.Commit documentation
This commit is contained in:
commit
53ce8c103d
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…
x
Reference in New Issue
Block a user