mirror of https://github.com/etcd-io/bbolt.git
add tx-copy-deprecated
parent
4f5275f4eb
commit
32f8e5fee9
4
tx.go
4
tx.go
|
@ -303,7 +303,9 @@ func (tx *Tx) close() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy writes the entire database to a writer.
|
// Copy writes the entire database to a writer.
|
||||||
// This function exists for backwards compatibility. Use WriteTo() instead.
|
// This function exists for backwards compatibility.
|
||||||
|
//
|
||||||
|
// Deprecated; Use WriteTo() instead.
|
||||||
func (tx *Tx) Copy(w io.Writer) error {
|
func (tx *Tx) Copy(w io.Writer) error {
|
||||||
_, err := tx.WriteTo(w)
|
_, err := tx.WriteTo(w)
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue