[Pkg-nagios-changes] [SCM] UNNAMED PROJECT branch, debian/master, updated. 810edbdd3feedbfe37f4a65bee50b57b2f60fa2a
Sebastien Coavoux
s.coavoux at free.fr
Tue Feb 28 22:05:36 UTC 2012
The following commit has been merged in the debian/master branch:
commit aae63cd9d5a81ec2ab09ab45c3fdd670c13d1a96
Author: Sebastien Coavoux <s.coavoux at free.fr>
Date: Wed Sep 28 22:06:25 2011 +0200
I give up for quering the database only once, I will do it properly with 2 queries
diff --git a/shinken/modules/ndodb_mysql_broker/ndodb_mysql_broker.py b/shinken/modules/ndodb_mysql_broker/ndodb_mysql_broker.py
index d796be1..4186bd7 100644
--- a/shinken/modules/ndodb_mysql_broker/ndodb_mysql_broker.py
+++ b/shinken/modules/ndodb_mysql_broker/ndodb_mysql_broker.py
@@ -160,7 +160,7 @@ class Ndodb_Mysql_broker(BaseModule):
self.db.execute_query(query2)
row2 = self.db.fetchone()
- if len(row1)<1 or len(row2)<1 :
+ if len(row1)<1 :
return -1
#We are the first process writing in base
elif row1[0] is None:
--
UNNAMED PROJECT
More information about the Pkg-nagios-changes
mailing list