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

Function receiveSynchronousResponse

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

Source from the content-addressed store, hash-verified

1914}
1915
1916char *receiveSynchronousResponse(connection *conn) {
1917 char buf[256];
1918 /* Read the reply from the server. */
1919 if (connSyncReadLine(conn,buf,sizeof(buf),server.repl_syncio_timeout*1000) == -1)
1920 {
1921 return sdscatprintf(sdsempty(),"-Reading from master: %s",
1922 strerror(errno));
1923 }
1924 server.repl_transfer_lastio = server.unixtime;
1925 return sdsnew(buf);
1926}
1927
1928/* Send a pre-formatted multi-bulk command to the connection. */
1929char* sendCommandRaw(connection *conn, sds cmd) {

Callers 2

syncWithMasterFunction · 0.85

Calls 4

connSyncReadLineFunction · 0.85
sdscatprintfFunction · 0.85
sdsemptyFunction · 0.85
sdsnewFunction · 0.85

Tested by

no test coverage detected