func (o *listRow) deleteObject(s *Store, bt *engine.Batch) error { it := s.getIterator() defer s.putIterator(it) for pfx := it.SeekTo(o.DataKeyPrefix()); it.Valid(); it.Next() { key := it.Key() if !bytes.HasPrefix(key, pfx) { break } bt.Del(key) } bt.Del(o.MetaKey()) return it.Error() }
func (o *stringRow) deleteObject(s *Store, bt *engine.Batch) error { bt.Del(o.DataKey()) bt.Del(o.MetaKey()) return nil }