Add COUNT parameter for SCAN

refs #4991
This commit is contained in:
Gunnar Beutner 2017-03-22 10:25:27 +01:00 committed by Michael Friedrich
parent 28b2345a3b
commit dac9775b93
1 changed files with 1 additions and 1 deletions

View 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);