* to keep data safe and we may delay configured 'save' for full sync. */
if(server.saveparamslen==0&&
c->replstate==SLAVE_STATE_WAIT_BGSAVE_END&&
server.rdb_child_pid!=-1&&
server.child_type==CHILD_TYPE_RDB&&
server.rdb_child_type==RDB_CHILD_TYPE_DISK&&
anyOtherSlaveWaitRdb(c)==0)
{
...
...
@@ -1686,6 +1735,7 @@ int processInlineBuffer(client *c) {
* However the is an exception: masters may send us just a newline
* to keep the connection active. */
if(querylen!=0&&c->flags&CLIENT_MASTER){
sdsfreesplitres(argv,argc);
serverLog(LL_WARNING,"WARNING: Receiving inline protocol from master, master stream corruption? Closing the master connection and discarding the cached master.");
setProtocolError("Master using the inline protocol. Desync?",c);
returnC_ERR;
...
...
@@ -1851,7 +1901,7 @@ int processMultibulkBuffer(client *c) {
c->qb_pos=0;
/* Hint the sds library about the amount of bytes this string is
"ENCODING <key> -- Return the kind of internal representation used in order to store the value associated with a key.",
"FREQ <key> -- Return the access frequency index of the key. The returned integer is proportional to the logarithm of the recent access frequency of the key.",
"IDLETIME <key> -- Return the idle time of the key, that is the approximated number of seconds elapsed since the last access to the key.",
"REFCOUNT <key> -- Return the number of references of the value associated with the specified key.",
"ENCODING <key>",
" Return the kind of internal representation used in order to store the value",
" associated with a <key>.",
"FREQ <key>",
" Return the access frequency index of the <key>. The returned integer is",
" proportional to the logarithm of the recent access frequency of the key.",
"IDLETIME <key>",
" Return the idle time of the <key>, that is the approximated number of",
" seconds elapsed since the last access to the key.",
"REFCOUNT <key>",
" Return the number of references of the value associated with the specified",