Send a pre-formatted multi-bulk command to the connection. */
| 1927 | |
| 1928 | /* Send a pre-formatted multi-bulk command to the connection. */ |
| 1929 | char* 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 |
no test coverage detected