From 1e9e16f16b4858387f03bc4fb0c5586e4b459a9d Mon Sep 17 00:00:00 2001 From: Cloud Wu Date: Mon, 30 Oct 2017 11:43:17 +0800 Subject: [PATCH] fix #755 --- 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 e77f74999..4ed052815 100644 --- a/lualib/skynet/db/mongo.lua +++ b/lualib/skynet/db/mongo.lua @@ -555,10 +555,10 @@ function mongo_cursor:hasNext() local pack if self.__data == nil then local query = self.__sortquery or self.__query - pack = driver.query(request_id, self.__flags, self.__collection.full_name, self.__skip, -self.__limit, query, self.__selector) + pack = driver.query(request_id, self.__flags, self.__collection.full_name, self.__skip, self.__limit, query, self.__selector) else if self.__cursor then - pack = driver.more(request_id, self.__collection.full_name, -self.__limit, self.__cursor) + pack = driver.more(request_id, self.__collection.full_name, self.__limit, self.__cursor) else -- no more self.__document = nil