Commit 9b3bf80e authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 102afd99
...@@ -72,6 +72,8 @@ func (d *dumper) DumpData(datai *zodb.StorageRecordInformation) error { ...@@ -72,6 +72,8 @@ func (d *dumper) DumpData(datai *zodb.StorageRecordInformation) error {
} }
entry += "\n" entry += "\n"
// TODO use writev(data, "\n") via net.Buffers (it is already available)
_, err := d.W.Write(mem.Bytes(entry)) _, err := d.W.Write(mem.Bytes(entry))
if err != nil { if err != nil {
goto out goto out
...@@ -83,7 +85,6 @@ func (d *dumper) DumpData(datai *zodb.StorageRecordInformation) error { ...@@ -83,7 +85,6 @@ func (d *dumper) DumpData(datai *zodb.StorageRecordInformation) error {
goto out goto out
} }
// TODO use writev(data, "\n") when it is available
_, err = d.W.Write([]byte("\n")) _, err = d.W.Write([]byte("\n"))
if err != nil { if err != nil {
goto out goto out
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment