refactoring

This commit is contained in:
Chris Lu
2019-07-17 23:43:48 -07:00
parent 0264a7f50a
commit 898d943b25
4 changed files with 6 additions and 6 deletions

View File

@@ -58,7 +58,7 @@ func (vs *VolumeServer) BatchDelete(ctx context.Context, req *volume_server_pb.B
break
}
n.LastModified = now
if size, err := vs.store.Delete(volumeId, n); err != nil {
if size, err := vs.store.DeleteVolumeNeedle(volumeId, n); err != nil {
resp.Results = append(resp.Results, &volume_server_pb.DeleteResult{
FileId: fid,
Status: http.StatusInternalServerError,