]> granicus.if.org Git - icinga2/commitdiff
Add COUNT parameter for SCAN
authorGunnar Beutner <gunnar.beutner@icinga.com>
Wed, 22 Mar 2017 09:25:27 +0000 (10:25 +0100)
committerMichael Friedrich <michael.friedrich@icinga.com>
Wed, 29 Mar 2017 08:17:03 +0000 (10:17 +0200)
refs #4991

lib/redis/rediswriter.cpp

index 8fe916fb1eadbc8a291eafcffe1c528c9670d6bc..722bf95db74fc3a53b1fffb7c540f93404573438 100644 (file)
@@ -131,7 +131,7 @@ void RedisWriter::UpdateSubscriptions(void)
        long long cursor = 0;
 
        do {
-               boost::shared_ptr<redisReply> reply = ExecuteQuery({ "SCAN", Convert::ToString(cursor), "MATCH", "icinga:subscription:*" });
+               boost::shared_ptr<redisReply> reply = ExecuteQuery({ "SCAN", Convert::ToString(cursor), "MATCH", "icinga:subscription:*", "COUNT", "1000" });
 
                VERIFY(reply->type == REDIS_REPLY_ARRAY);
                VERIFY(reply->elements % 2 == 0);