MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / unack_write

Method unack_write

pymongo/asynchronous/pool.py:469–478  ·  view source on GitHub ↗

Send unack OP_MSG. Can raise ConnectionFailure or InvalidDocument. :param msg: bytes, an OP_MSG message. :param max_doc_size: size in bytes of the largest document in `msg`.

(self, msg: bytes, max_doc_size: int)

Source from the content-addressed store, hash-verified

467 raise NotPrimaryError("not primary", {"ok": 0, "errmsg": "not primary", "code": 10107})
468
469 async def unack_write(self, msg: bytes, max_doc_size: int) -> None:
470 """Send unack OP_MSG.
471
472 Can raise ConnectionFailure or InvalidDocument.
473
474 :param msg: bytes, an OP_MSG message.
475 :param max_doc_size: size in bytes of the largest document in `msg`.
476 """
477 self._raise_if_not_writable(True)
478 await self.send_message(msg, max_doc_size)
479
480 async def write_command(
481 self, request_id: int, msg: bytes, codec_options: CodecOptions[Mapping[str, Any]]

Callers

nothing calls this directly

Calls 2

send_messageMethod · 0.95

Tested by

no test coverage detected