Skip to content

Commit 513236b

Browse files
committed
bug 9161: better fix
1 parent f3fbe7b commit 513236b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

server/src/com/cloud/vm/ItWorkDaoImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ protected ItWorkDaoImpl() {
4242
AllFieldsSearch = createSearchBuilder();
4343
AllFieldsSearch.and("instance", AllFieldsSearch.entity().getInstanceId(), Op.EQ);
4444
AllFieldsSearch.and("op", AllFieldsSearch.entity().getType(), Op.EQ);
45-
AllFieldsSearch.and("step", AllFieldsSearch.entity().getStep(), Op.NEQ);
45+
AllFieldsSearch.and("step", AllFieldsSearch.entity().getStep(), Op.EQ);
4646
AllFieldsSearch.done();
4747

4848
CleanupSearch = createSearchBuilder();
@@ -64,7 +64,7 @@ protected ItWorkDaoImpl() {
6464

6565
@Override
6666
public ItWorkVO findByOutstandingWork(long instanceId, State state) {
67-
SearchCriteria<ItWorkVO> sc = AllFieldsSearch.create();
67+
SearchCriteria<ItWorkVO> sc = OutstandingWorkSearch.create();
6868
sc.setParameters("instance", instanceId);
6969
sc.setParameters("op", state);
7070
sc.setParameters("step", Step.Done);

0 commit comments

Comments
 (0)