Monday, July 17, 2017

[389-commits] [389-ds-base] 01/01: Ticket 49316 - fix missing not condition in clock cleanu

This is an automated email from the git hooks/post-receive script.

firstyear pushed a commit to branch master
in repository 389-ds-base.

commit 1b9504533e4687a08c0fbb9141b4ea835f19f479
Author: Ludwig Krispenz <lkrispen@redhat.com>
Date: Mon Jul 17 13:32:54 2017 +0200

Ticket 49316 - fix missing not condition in clock cleanu

Bug Description: During the clock cleanup I removed a
macro. This broke a not condition which caused 100% cpu
load.

Fix Description: Add braces around the condition.

https://pagure.io/389-ds-base/issue/49316

Author: lkrispen

Review by: wibrown (Thanks Ludwig!)
---
ldap/servers/slapd/eventq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ldap/servers/slapd/eventq.c b/ldap/servers/slapd/eventq.c
index 64c1d6b..1089dc3 100644
--- a/ldap/servers/slapd/eventq.c
+++ b/ldap/servers/slapd/eventq.c
@@ -315,7 +315,7 @@ eq_loop(void *arg __attribute__((unused)))
PRIntervalTime timeout;
int until;
PR_Lock(eq->eq_lock);
- while (!(NULL != eq->eq_queue) && (eq->eq_queue->ec_when <= curtime)) {
+ while (!((NULL != eq->eq_queue) && (eq->eq_queue->ec_when <= curtime))) {
if (!eq_running) {
PR_Unlock(eq->eq_lock);
goto bye;

--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
389-commits mailing list -- 389-commits@lists.fedoraproject.org
To unsubscribe send an email to 389-commits-leave@lists.fedoraproject.org

No comments:

Post a Comment