From 13a312191b1e8356465c14725f1875d00ca56880 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Mon, 14 Nov 2011 11:00:30 +0000 Subject: [PATCH] Remove rowCount entries instead, it reset the search result. --- ykval-synclib.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/ykval-synclib.php b/ykval-synclib.php index f060302..b8339e6 100644 --- a/ykval-synclib.php +++ b/ykval-synclib.php @@ -290,12 +290,10 @@ class SyncLib /* Loop over all unique servers in queue */ $queued_limit=time()-$older_than; $res=$this->db->customQuery("select distinct server from queue WHERE queued < " . $queued_limit . " or queued is null"); - $this->log(LOG_INFO, "found " . $this->db->rowCount() . " unique servers"); foreach ($res as $my_server) { $this->log(LOG_INFO, "Sending queue request to server on server " . $my_server['server']); $res=$this->db->customQuery("select * from queue WHERE (queued < " . $queued_limit . " or queued is null) and server='" . $my_server['server'] . "'"); - $this->log(LOG_INFO, "found " . $this->db->rowCount() . " queue entries"); while ($entry=$res->fetch(PDO::FETCH_ASSOC)) { $this->log(LOG_INFO, "server=" . $entry['server'] . " , info=" . $entry['info']);