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() {
419
419
TotalVMSnapshotSizeByPoolSearch .and ("poolId" , TotalVMSnapshotSizeByPoolSearch .entity ().getPoolId (), Op .EQ );
420
420
TotalVMSnapshotSizeByPoolSearch .and ("removed" , TotalVMSnapshotSizeByPoolSearch .entity ().getRemoved (), Op .NULL );
421
421
TotalVMSnapshotSizeByPoolSearch .and ("state" , TotalVMSnapshotSizeByPoolSearch .entity ().getState (), Op .NEQ );
422
- TotalVMSnapshotSizeByPoolSearch .and ("vType" , TotalVMSnapshotSizeByPoolSearch .entity ().getVolumeType (), Op .EQ );
423
422
TotalVMSnapshotSizeByPoolSearch .and ("instanceId" , TotalVMSnapshotSizeByPoolSearch .entity ().getInstanceId (), Op .NNULL );
424
423
TotalVMSnapshotSizeByPoolSearch .done ();
425
424
@@ -661,7 +660,6 @@ public long getVMSnapshotSizeByPool(long poolId) {
661
660
SearchCriteria <SumCount > sc = TotalVMSnapshotSizeByPoolSearch .create ();
662
661
sc .setParameters ("poolId" , poolId );
663
662
sc .setParameters ("state" , State .Destroy );
664
- sc .setParameters ("vType" , Volume .Type .ROOT .toString ());
665
663
List <SumCount > results = customSearch (sc , null );
666
664
if (results != null ) {
667
665
return results .get (0 ).sum ;
You can’t perform that action at this time.
0 commit comments