@@ -1620,13 +1620,10 @@ void freeClient(client *c) {
16201620
16211621 /* Log link disconnection with slave */
16221622 if (getClientType (c ) == CLIENT_TYPE_SLAVE ) {
1623- if (c -> flags & CLIENT_REPL_RDB_CHANNEL ) {
1624- serverLog (LL_NOTICE ,"Replica %s rdb channel disconnected." ,
1623+ serverLog (LL_NOTICE , c -> flags & CLIENT_REPL_RDB_CHANNEL ?
1624+ "Replica %s rdb channel disconnected." :
1625+ "Connection with replica %s lost." ,
16251626 replicationGetSlaveName (c ));
1626- } else {
1627- serverLog (LL_NOTICE ,"Connection with replica %s lost." ,
1628- replicationGetSlaveName (c ));
1629- }
16301627 }
16311628
16321629 /* Free the query buffer */
@@ -1818,6 +1815,8 @@ int freeClientsInAsyncFreeQueue(void) {
18181815 /* Check if we can remove RDB connection protection. */
18191816 if (!c -> rdb_client_disconnect_time ) {
18201817 c -> rdb_client_disconnect_time = server .unixtime ;
1818+ serverLog (LL_VERBOSE , "Postpone RDB client id=%llu (%s) free for %d seconds" ,
1819+ (unsigned long long )c -> id , replicationGetSlaveName (c ), server .wait_before_rdb_client_free );
18211820 continue ;
18221821 }
18231822 if (server .unixtime - c -> rdb_client_disconnect_time > server .wait_before_rdb_client_free ) {
@@ -2678,7 +2677,7 @@ void readQueryFromClient(connection *conn) {
26782677 size_t qblen , readlen ;
26792678
26802679 /* If the replica RDB client is marked as closed ASAP, do not try to read from it */
2681- if (( c -> flags & CLIENT_CLOSE_ASAP ) && ( c -> flags & CLIENT_PROTECTED_RDB_CHANNEL ) ) return ;
2680+ if (c -> flags & CLIENT_CLOSE_ASAP ) return ;
26822681
26832682 /* Check if we want to read from the client later when exiting from
26842683 * the event loop. This is the case if threaded I/O is enabled. */
@@ -2741,9 +2740,6 @@ void readQueryFromClient(connection *conn) {
27412740 if (server .verbosity <= LL_VERBOSE ) {
27422741 sds info = catClientInfoString (sdsempty (), c );
27432742 serverLog (LL_VERBOSE , "Client closed connection %s" , info );
2744- if (c -> flags & CLIENT_PROTECTED_RDB_CHANNEL ) {
2745- serverLog (LL_VERBOSE , "Postpone RDB client id=%llu (%s) free for %d seconds" , (unsigned long long )c -> id , replicationGetSlaveName (c ), server .wait_before_rdb_client_free );
2746- }
27472743 sdsfree (info );
27482744 }
27492745 freeClientAsync (c );
0 commit comments