Lines Matching refs:err
1387 char tmpfile[256], *err = NULL; in syncWithMaster() local
1420 err = sendSynchronousCommand(SYNC_CMD_WRITE,fd,"PING",NULL); in syncWithMaster()
1421 if (err) goto write_error; in syncWithMaster()
1427 err = sendSynchronousCommand(SYNC_CMD_READ,fd,NULL); in syncWithMaster()
1434 if (err[0] != '+' && in syncWithMaster()
1435 strncmp(err,"-NOAUTH",7) != 0 && in syncWithMaster()
1436 strncmp(err,"-ERR operation not permitted",28) != 0) in syncWithMaster()
1438 serverLog(LL_WARNING,"Error reply to PING from master: '%s'",err); in syncWithMaster()
1439 sdsfree(err); in syncWithMaster()
1445 sdsfree(err); in syncWithMaster()
1452 err = sendSynchronousCommand(SYNC_CMD_WRITE,fd,"AUTH",server.masterauth,NULL); in syncWithMaster()
1453 if (err) goto write_error; in syncWithMaster()
1463 err = sendSynchronousCommand(SYNC_CMD_READ,fd,NULL); in syncWithMaster()
1464 if (err[0] == '-') { in syncWithMaster()
1465 serverLog(LL_WARNING,"Unable to AUTH to MASTER: %s",err); in syncWithMaster()
1466 sdsfree(err); in syncWithMaster()
1469 sdsfree(err); in syncWithMaster()
1478 err = sendSynchronousCommand(SYNC_CMD_WRITE,fd,"REPLCONF", in syncWithMaster()
1481 if (err) goto write_error; in syncWithMaster()
1482 sdsfree(err); in syncWithMaster()
1489 err = sendSynchronousCommand(SYNC_CMD_READ,fd,NULL); in syncWithMaster()
1492 if (err[0] == '-') { in syncWithMaster()
1494 "REPLCONF listening-port: %s", err); in syncWithMaster()
1496 sdsfree(err); in syncWithMaster()
1510 err = sendSynchronousCommand(SYNC_CMD_WRITE,fd,"REPLCONF", in syncWithMaster()
1512 if (err) goto write_error; in syncWithMaster()
1513 sdsfree(err); in syncWithMaster()
1520 err = sendSynchronousCommand(SYNC_CMD_READ,fd,NULL); in syncWithMaster()
1523 if (err[0] == '-') { in syncWithMaster()
1525 "REPLCONF ip-address: %s", err); in syncWithMaster()
1527 sdsfree(err); in syncWithMaster()
1536 err = sendSynchronousCommand(SYNC_CMD_WRITE,fd,"REPLCONF", in syncWithMaster()
1538 if (err) goto write_error; in syncWithMaster()
1539 sdsfree(err); in syncWithMaster()
1546 err = sendSynchronousCommand(SYNC_CMD_READ,fd,NULL); in syncWithMaster()
1549 if (err[0] == '-') { in syncWithMaster()
1551 "REPLCONF capa: %s", err); in syncWithMaster()
1553 sdsfree(err); in syncWithMaster()
1564 err = sdsnew("Write error sending the PSYNC command."); in syncWithMaster()
1649 serverLog(LL_WARNING,"Sending command to master in replication handshake: %s", err); in syncWithMaster()
1650 sdsfree(err); in syncWithMaster()