log_reply

(PECL mongo >= 1.5.0)

log_replyCallback When Reading the MongoDB reply

Descrierea

log_reply ( array $server , array $messageHeaders , array $operationHeaders )

A callable function, used by the log_reply context option, when reading a reply from MongoDB.

Notă:

This is not a real function, only a prototype of how the function should be.

Parametri

server

Un tablou cu informațiile de bază despre serverul ales.

cheievaloare
hash hash-ul serverului, de exemplu:localhost:27017;-;X;56052
type Tipul nodului (primary/secondary/mongos/arbiter): 2
max_bson_size Dimensiunea maximală BSON prin fir, pe care acest nod o acceptă: 16777216
max_message_size Dimensiunea maximală a mesajului prin fir, pe care acest nod o acceptă: 48000000
request_id Identificatorul interpelării pentru acest mesaj: 42

messageHeaders

key value
length integer, bytes, message reply length
request_id integer, the server request identifier
response_id integer, the driver request identifier this message is a response of
opcode integer, the opcode id

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