1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2024-11-29 00:24:13 +01:00

limit how many queued entries we get on each run

if there's more than 1000 queued we will get another 1000 on the next
run.
This commit is contained in:
Klas Lindfors 2016-03-14 14:52:15 +01:00
parent ba0d6fc193
commit 3a85744814

View File

@ -290,7 +290,7 @@ class SyncLib
$server = $my_server['server'];
$this->log(LOG_DEBUG, "Processing queue for server " . $server);
$res = $this->db->customQuery("select * from queue WHERE (queued < " . $queued_limit . " or queued is null) and server='" . $server . "'");
$res = $this->db->customQuery("select * from queue WHERE (queued < " . $queued_limit . " or queued is null) and server='" . $server . "' LIMIT 1000");
$list = array();