func NewMemDBSlice(id SliceId, defId c.IndexDefnId, instId c.IndexInstId, isPrimary bool, conf c.Config) (*memDBSlice, error) { slice := &memDBSlice{ id: id, instId: instId, indDefId: defId, isPrimary: isPrimary, conf: conf, main: memdb.New(), back: memdb.New(), } return slice, nil }
func (s *memDBSlice) RollbackToZero() error { s.main = memdb.New() s.back = memdb.New() return nil }