mongodb 交互协议调整为 OP_MSG (#1649)

* mongodb 交互协议调整为 OP_MSG

* Update

Co-authored-by: yy151474 <yy151474@alibaba-inc.com>
This commit is contained in:
ykxpb
2022-09-20 10:56:33 +08:00
committed by GitHub
parent 7b76bcd039
commit 44e2583dc2
3 changed files with 240 additions and 474 deletions

View File

@@ -14,7 +14,7 @@ local function _create_client()
{
host = host, port = port,
username = username, password = password,
authdb = db_name,
authdb = "admin",
}
)
end
@@ -209,7 +209,7 @@ local function test_safe_batch_delete()
db.testcoll:safe_batch_delete(docs)
local ret = db.testcoll:find()
assert(length == ret:count(), "test safe batch delete failed")
assert((length - del_num) == ret:count(), "test safe batch delete failed")
end
skynet.start(function()