Yair Zaslavsky has submitted this change and it was merged.

Change subject: core: Fetch Jobs by last update time
......................................................................


core: Fetch Jobs by last update time

The patch updates the query of fetching jobs by returning the jobs
ordered first by running job (identified by status 'STARTED') ordered by
last update time in a descending order, followed by the completed jobs
(regardless their status) ordered by last update time.
The sort is performed on DB level, therefore the comparator is not
required anymore.

Change-Id: Ib5eff10ebd0f25f3f5080a97b40c78ab50737b0d
---
M backend/manager/dbscripts/job_sp.sql
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/GetJobsByOffsetQuery.java
2 files changed, 9 insertions(+), 24 deletions(-)

Approvals:
  Yair Zaslavsky: Verified; Looks good to me, approved


--
To view, visit http://gerrit.ovirt.org/2070
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib5eff10ebd0f25f3f5080a97b40c78ab50737b0d
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Moti Asayag <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to