mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
bugfix: mongo getMore command field batchSize cannot replace with limit (#1666)
This commit is contained in:
@@ -690,7 +690,7 @@ function mongo_cursor:hasNext()
|
|||||||
else
|
else
|
||||||
if self.__cursor and self.__cursor > 0 then
|
if self.__cursor and self.__cursor > 0 then
|
||||||
local name = self.__collection.name
|
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
|
else
|
||||||
-- no more
|
-- no more
|
||||||
self.__document = nil
|
self.__document = nil
|
||||||
@@ -754,4 +754,4 @@ function mongo_cursor:close()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return mongo
|
return mongo
|
||||||
|
|||||||
Reference in New Issue
Block a user