add collection.delete

This commit is contained in:
Chris Lu
2019-05-30 09:47:54 -07:00
parent 1d111d6ce8
commit 40ca2f2903
5 changed files with 92 additions and 2 deletions

View File

@@ -64,6 +64,10 @@ func (shard *EcVolumeShard) Close() {
}
}
func (shard *EcVolumeShard) Destroy() {
os.Remove(shard.FileName() + ToExt(int(shard.ShardId)))
}
func (shard *EcVolumeShard) ReadAt(buf []byte, offset int64) (int, error) {
return shard.ecdFile.ReadAt(buf, offset)