mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +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
|
||||
|
||||
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,
|
||||
limit = single and 1 or 0,
|
||||
})})
|
||||
|
||||
Reference in New Issue
Block a user