Change to osa_dispatcher.py to make sure there are no dangling transactions while sleeping in the main loop. The two queries executed in these functions implicitly start a transaction that is never committed.

---
 client/tools/osad/src/osa_dispatcher.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/client/tools/osad/src/osa_dispatcher.py b/client/tools/osad/src/osa_dispatcher.py
index 5d6397a..ff9ceee 100644
--- a/client/tools/osad/src/osa_dispatcher.py
+++ b/client/tools/osad/src/osa_dispatcher.py
@@ -206,6 +206,7 @@ class Runner(jabber_lib.Runner):
         h = rhnSQL.prepare(self._query_fetch_clients_to_be_pinged)
         h.execute(online_id=online_id)
         clients = h.fetchall_dict() or []
+        rhnSQL.commit()
         if not clients:
             # Nothing to do
             return
@@ -332,6 +333,7 @@ class UpstreamServer(SocketServer.TCPServer):
             log_debug(4, "Notifying", jabber_id, row['server_id'])
             self.jabber_connection.send_message(jabber_id,
                 jabber_lib.NS_RHN_MESSAGE_REQUEST_CHECKIN)
+        rhnSQL.commit()

# We need to drive this query by rhnPushClient since it's substantially
     # smaller than rhnAction
--
1.7.1

--
Solvention Ltd. & Co. KG
Egermannstr. 6-8
53359 Rheinbach

Tel: +49 2226 158179-0
Fax: +49 2226 158179-9

http://www.solvention.de
mailto:i...@solvention.de

_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to