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

Method _succeed

pymongo/message.py:639–651  ·  view source on GitHub ↗

Publish a CommandSucceededEvent.

(self, request_id: int, reply: _DocumentOut, duration: datetime.timedelta)

Source from the content-addressed store, hash-verified

637 return self.max_bson_size
638
639 def _succeed(self, request_id: int, reply: _DocumentOut, duration: datetime.timedelta) -> None:
640 """Publish a CommandSucceededEvent."""
641 self.listeners.publish_command_success(
642 duration,
643 reply,
644 self.name,
645 request_id,
646 self.conn.address,
647 self.conn.server_connection_id,
648 self.op_id,
649 self.conn.service_id,
650 database_name=self.db_name,
651 )
652
653 def _fail(self, request_id: int, failure: _DocumentOut, duration: datetime.timedelta) -> None:
654 """Publish a CommandFailedEvent."""

Callers 8

write_commandMethod · 0.80
unack_writeMethod · 0.80
write_commandMethod · 0.80
unack_writeMethod · 0.80
write_commandMethod · 0.80
unack_writeMethod · 0.80
write_commandMethod · 0.80
unack_writeMethod · 0.80

Calls 1

Tested by

no test coverage detected