bug 9774: listsnapshot returns all snapshots with status

status 9774: resolved fixed
This commit is contained in:
anthony 2011-05-06 18:29:59 -07:00
parent fce6b5fc87
commit b7703161a7
1 changed files with 1 additions and 1 deletions

View File

@ -802,7 +802,7 @@ public class SnapshotManagerImpl implements SnapshotManager, SnapshotService, Ma
Filter searchFilter = new Filter(SnapshotVO.class, "created", false, cmd.getStartIndex(), cmd.getPageSizeVal());
SearchBuilder<SnapshotVO> sb = _snapshotDao.createSearchBuilder();
sb.and("status", sb.entity().getStatus(), SearchCriteria.Op.EQ);
sb.and("status", sb.entity().getStatus(), SearchCriteria.Op.NNULL);
sb.and("volumeId", sb.entity().getVolumeId(), SearchCriteria.Op.EQ);
sb.and("name", sb.entity().getName(), SearchCriteria.Op.LIKE);
sb.and("id", sb.entity().getId(), SearchCriteria.Op.EQ);