0
0

metrics implements BatchEx correctly

This commit is contained in:
Steve Yen 2016-01-21 11:00:41 -08:00
parent fc34a97875
commit d5de1d3da1

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) {