Method
CommitBatch
(bm sorted.BatchMutation)
Source from the content-addressed store, hash-verified
| 185 | } |
| 186 | |
| 187 | func (is *kvis) CommitBatch(bm sorted.BatchMutation) error { |
| 188 | b, ok := bm.(*lvbatch) |
| 189 | if !ok { |
| 190 | return errors.New("invalid batch type") |
| 191 | } |
| 192 | b.errMu.Lock() |
| 193 | defer b.errMu.Unlock() |
| 194 | if b.err != nil { |
| 195 | return b.err |
| 196 | } |
| 197 | return is.db.Write(b.batch, is.writeOpts) |
| 198 | } |
| 199 | |
| 200 | func (is *kvis) Close() error { |
| 201 | return is.db.Close() |
Callers
nothing calls this directly
Tested by
no test coverage detected