MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / sendCommandRaw

Function sendCommandRaw

src/replication.cpp:3100–3106  ·  view source on GitHub ↗

Send a pre-formatted multi-bulk command to the connection. */

Source from the content-addressed store, hash-verified

3098
3099/* Send a pre-formatted multi-bulk command to the connection. */
3100char* sendCommandRaw(connection *conn, sds cmd) {
3101 if (connSyncWrite(conn,cmd,sdslen(cmd),g_pserver->repl_syncio_timeout*1000) == -1) {
3102 return sdscatprintf(sdsempty(),"-Writing to master: %s",
3103 connGetLastError(conn));
3104 }
3105 return NULL;
3106}
3107
3108/* Compose a multi-bulk command and send it to the connection.
3109 * Used to send AUTH and REPLCONF commands to the master before starting the

Callers 2

sendCommandFunction · 0.85
sendCommandArgvFunction · 0.85

Calls 5

connSyncWriteFunction · 0.85
sdslenFunction · 0.85
sdscatprintfFunction · 0.85
sdsemptyFunction · 0.85
connGetLastErrorFunction · 0.85

Tested by

no test coverage detected