From ae35b3c4e894d67e896e76643334d5663120dd84 Mon Sep 17 00:00:00 2001 From: learno Date: Wed, 19 Oct 2022 17:04:49 +0800 Subject: [PATCH] bugfix: mongo getMore command field batchSize cannot replace with limit (#1666) --- lualib/skynet/db/mongo.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lualib/skynet/db/mongo.lua b/lualib/skynet/db/mongo.lua index d51b4d14..958f9673 100644 --- a/lualib/skynet/db/mongo.lua +++ b/lualib/skynet/db/mongo.lua @@ -690,7 +690,7 @@ function mongo_cursor:hasNext() else if self.__cursor and self.__cursor > 0 then local name = self.__collection.name - response = database:runCommand("getMore", bson_int64(self.__cursor), "collection", name, "batchSize", self.__limit) + response = database:runCommand("getMore", bson_int64(self.__cursor), "collection", name) else -- no more self.__document = nil @@ -754,4 +754,4 @@ function mongo_cursor:close() end end -return mongo \ No newline at end of file +return mongo