mooli tayer has uploaded a new change for review.

Change subject: tools: send notifications according to oreder of creation.
......................................................................

tools: send notifications according to oreder of creation.

Change-Id: Ifcaab815ad880269d57d3faa1f8eb67be78d4e2d
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1020793
Signed-off-by: Mooli Tayer <[email protected]>
---
M 
backend/manager/tools/src/main/java/org/ovirt/engine/core/notifier/NotificationService.java
1 file changed, 3 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/70/20870/1

diff --git 
a/backend/manager/tools/src/main/java/org/ovirt/engine/core/notifier/NotificationService.java
 
b/backend/manager/tools/src/main/java/org/ovirt/engine/core/notifier/NotificationService.java
index 4507dec..6f4dfb0 100644
--- 
a/backend/manager/tools/src/main/java/org/ovirt/engine/core/notifier/NotificationService.java
+++ 
b/backend/manager/tools/src/main/java/org/ovirt/engine/core/notifier/NotificationService.java
@@ -237,8 +237,9 @@
             connection = ds.getConnection();
             ps =
                     connection
-                            .prepareStatement("select * from 
event_audit_log_subscriber_view " +
-                                    "where audit_log_id <= (select 
max(audit_log_id) from audit_log)");
+                            .prepareStatement("SELECT * FROM 
event_audit_log_subscriber_view " +
+                                    "WHERE audit_log_id <= (SELECT 
MAX(audit_log_id) FROM audit_log) " +
+                                    "ORDER BY log_time ASC");
             rs = ps.executeQuery();
             while (rs.next()) {
                 eventSubscribers.add(getEventAuditLogSubscriber(rs));


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifcaab815ad880269d57d3faa1f8eb67be78d4e2d
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: mooli tayer <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to