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