mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
修改delete使用send_command (#1770)
Co-authored-by: xingfan.yzj <xingfan.yzj@alibaba-inc.com>
This commit is contained in:
@@ -457,7 +457,7 @@ function mongo_collection:raw_safe_update(update)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function mongo_collection:delete(query, single)
|
function mongo_collection:delete(query, single)
|
||||||
self.database:runCommand("delete", self.name, "deletes", {bson_encode({
|
self.database:send_command("delete", self.name, "deletes", {bson_encode({
|
||||||
q = query,
|
q = query,
|
||||||
limit = single and 1 or 0,
|
limit = single and 1 or 0,
|
||||||
})})
|
})})
|
||||||
|
|||||||
Reference in New Issue
Block a user