File tree Expand file tree Collapse file tree 1 file changed +0
-2
lines changed
engine/schema/src/main/java/com/cloud/storage/dao Expand file tree Collapse file tree 1 file changed +0
-2
lines changed Original file line number Diff line number Diff line change @@ -419,7 +419,6 @@ public VolumeDaoImpl() {
419419 TotalVMSnapshotSizeByPoolSearch .and ("poolId" , TotalVMSnapshotSizeByPoolSearch .entity ().getPoolId (), Op .EQ );
420420 TotalVMSnapshotSizeByPoolSearch .and ("removed" , TotalVMSnapshotSizeByPoolSearch .entity ().getRemoved (), Op .NULL );
421421 TotalVMSnapshotSizeByPoolSearch .and ("state" , TotalVMSnapshotSizeByPoolSearch .entity ().getState (), Op .NEQ );
422- TotalVMSnapshotSizeByPoolSearch .and ("vType" , TotalVMSnapshotSizeByPoolSearch .entity ().getVolumeType (), Op .EQ );
423422 TotalVMSnapshotSizeByPoolSearch .and ("instanceId" , TotalVMSnapshotSizeByPoolSearch .entity ().getInstanceId (), Op .NNULL );
424423 TotalVMSnapshotSizeByPoolSearch .done ();
425424
@@ -661,7 +660,6 @@ public long getVMSnapshotSizeByPool(long poolId) {
661660 SearchCriteria <SumCount > sc = TotalVMSnapshotSizeByPoolSearch .create ();
662661 sc .setParameters ("poolId" , poolId );
663662 sc .setParameters ("state" , State .Destroy );
664- sc .setParameters ("vType" , Volume .Type .ROOT .toString ());
665663 List <SumCount > results = customSearch (sc , null );
666664 if (results != null ) {
667665 return results .get (0 ).sum ;
You can’t perform that action at this time.
0 commit comments