MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sendCommandRaw

Function sendCommandRaw

app/redis-6.2.6/src/replication.c:1929–1935  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1927
1928/* Send a pre-formatted multi-bulk command to the connection. */
1929char* sendCommandRaw(connection *conn, sds cmd) {
1930 if (connSyncWrite(conn,cmd,sdslen(cmd),server.repl_syncio_timeout*1000) == -1) {
1931 return sdscatprintf(sdsempty(),"-Writing to master: %s",
1932 connGetLastError(conn));
1933 }
1934 return NULL;
1935}
1936
1937/* Compose a multi-bulk command and send it to the connection.
1938 * 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