这是统计和实施:
统计:
virtual Status Delete(const WriteOptions& options, const Slice& key) = 0;
实施:
Status DB::Delete(const WriteOptions& opt, const Slice& key) {
WriteBatch batch;
batch.Delete(key);
return Write(opt, &batch);
}