修改delete使用send_command (#1770)

Co-authored-by: xingfan.yzj <xingfan.yzj@alibaba-inc.com>
This commit is contained in:
yzj
2023-07-06 17:44:02 +08:00
committed by GitHub
parent 69420bdfde
commit 272af34736

View File

@@ -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,
})})