Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

log_reply(3) [php man page]

LOG_REPLY(3)								 1							      LOG_REPLY(3)

log_reply - Callback When Reading the MongoDB reply

SYNOPSIS
log_reply (array $server, array $messageHeaders, array $operationHeaders) DESCRIPTION
A callable function, used by the log_reply context option, when reading a reply from MongoDB. Note This is not a real function, only a prototype of how the function should be. PARAMETERS
o $server - An array containing the basic information about the server that was picked. +-----------------+---------------------------------------------------+ | key | | | | | | | value | | | | +-----------------+---------------------------------------------------+ | hash | | | | | | | server hash, example: localhost:27017;-;X;56052 | | | | | type | | | | | | | Node type (primary/secondary/mongos/arbiter): 2 | | | | | max_bson_size | | | | | | | The maximum BSON Size over the wire this node | | | accepts: 16777216 | | | | |max_message_size | | | | | | | The maximum Message Size over the wire this node | | | accepts: 48000000 | | | | | request_id | | | | | | | The request identifier for this message: 42 | | | | +-----------------+---------------------------------------------------+ o $messageHeaders - +------------+---------------------------------------------------+ | key | | | | | | | value | | | | +------------+---------------------------------------------------+ | length | | | | | | | integer, bytes, message reply length | | | | |request_id | | | | | | | integer, the server request identifier | | | | |response_id | | | | | | | integer, the driver request identifier this mes- | | | sage is a response of | | | | | opcode | | | | | | | integer, the opcode id | | | | +------------+---------------------------------------------------+ o $operationHeaders - +----------+---------------------------------------------------+ | key | | | | | | | value | | | | +----------+---------------------------------------------------+ | flags | | | | | | | integer, bitmask of protocol flags | | | | |cursor_id | | | | | | | integer, ID of the cursor created on the server | | | (0 if none created, or its been exhausted) | | | | | start | | | | | | | The starting offset of this cursor | | | | |returned | | | | | | | integer, how many documents are returned in this | | | trip | | | | +----------+---------------------------------------------------+ SEE ALSO The OP_REPLY definition in the Wire Protocol. PHP Documentation Group LOG_REPLY(3)

Check Out this Related Man Page

LOG_CMD_INSERT(3)							 1							 LOG_CMD_INSERT(3)

log_cmd_insert - Callback When Inserting Documents

SYNOPSIS
log_cmd_insert (array $server, array $document, array $writeOptions, array $protocolOptions) DESCRIPTION
A callable function, used by the log_cmd_insert context option, when inserting a document Note This is not a real function, only a prototype of how the function should be. PARAMETERS
o $server - An array containing the basic information about the server that was picked. +-----------------+---------------------------------------------------+ | key | | | | | | | value | | | | +-----------------+---------------------------------------------------+ | hash | | | | | | | server hash, example: localhost:27017;-;X;56052 | | | | | type | | | | | | | Node type (primary/secondary/mongos/arbiter): 2 | | | | | max_bson_size | | | | | | | The maximum BSON Size over the wire this node | | | accepts: 16777216 | | | | |max_message_size | | | | | | | The maximum Message Size over the wire this node | | | accepts: 48000000 | | | | | request_id | | | | | | | The request identifier for this message: 42 | | | | +-----------------+---------------------------------------------------+ o $document - The document that has been prepared to be inserted o $writeOptions - +-------------+---------------------------------------------------+ | key | | | | | | | value | | | | +-------------+---------------------------------------------------+ | ordered | | | | | | | boolean, if the operation (in case of batch oper- | | | ation) must be executed sequentually | | | (ordered=true) | | | | |writeConcern | | | | | | | An array of writeConcern options (see below) | | | | +-------------+---------------------------------------------------+ writeConcern array values +---------+---------------------------------------------------+ | key | | | | | | | value | | | | +---------+---------------------------------------------------+ | fsync | | | | | | | boolean, force flushing to disk before returning | | | | | j | | | | | | | boolean, force journal write before returning | | | | |wtimeout | | | | | | | integer, milliseconds, maximum time the primary | | | is allowed to wait to verify replication | | | | | w | | | | | | | integer=server count, or string=replication-tag | | | | +---------+---------------------------------------------------+ o $protocolOptions - +---------------+---------------------------------------------------+ | key | | | | | | | value | | | | +---------------+---------------------------------------------------+ |message_length | | | | | | | The total size (in bytes) of the encoded message | | | being sent over the wire | | | | | request_id | | | | | | | The request identifier for this message: 42 | | | | | namespace | | | | | | | The MongoDB namespace used for the protocol mes- | | | sage dbname.collectionname | | | | +---------------+---------------------------------------------------+ CHANGELOG
+--------+--------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+--------------------------------------------------+ | 1.5.0 | | | | | | | Only available when connected to MongoDB 2.6.0+ | | | | +--------+--------------------------------------------------+ PHP Documentation Group LOG_CMD_INSERT(3)
Man Page