0
0

Merge pull request #330 from steveyen/WIP-perf-20160121

metrics implements BatchEx correctly
This commit is contained in:
Steve Yen 2016-01-21 13:29:49 -08:00
commit 311a503d47

View File

@ -24,7 +24,11 @@ func (w *Writer) NewBatch() store.KVBatch {
}
func (w *Writer) NewBatchEx(options store.KVBatchOptions) ([]byte, store.KVBatch, error) {
return make([]byte, options.TotalBytes), w.NewBatch(), nil
buf, b, err := w.o.NewBatchEx(options)
if err != nil {
return nil, nil, err
}
return buf, &Batch{s: w.s, o: b}, nil
}
func (w *Writer) ExecuteBatch(b store.KVBatch) (err error) {