serverLog(LL_WARNING,"AOF was enabled but there is already a child process saving an RDB file on disk. An AOF background was scheduled to start when possible.");
serverLog(LL_WARNING,"AOF was enabled but there is already another background operation. An AOF background was scheduled to start when possible.");
}else{
}else{
/* If there is a pending AOF rewrite, we need to switch it off and
/* If there is a pending AOF rewrite, we need to switch it off and
* start a new one: the old one cannot be reused because it is not
* start a new one: the old one cannot be reused because it is not
serverLog(LL_WARNING,"Unexpected end of file reading the append only file. You can: 1) Make a backup of your AOF file, then use ./redis-check-aof --fix <filename>. 2) Alternatively you can set the 'aof-load-truncated' configuration option to yes and restart the server.");
serverLog(LL_WARNING,"Unexpected end of file reading the append only file. You can: 1) Make a backup of your AOF file, then use ./redis-check-aof --fix <filename>. 2) Alternatively you can set the 'aof-load-truncated' configuration option to yes and restart the server.");
serverLog(LL_WARNING,"WARNING: the new maxmemory value set via CONFIG SET is smaller than the current memory usage. This will result in key eviction and/or the inability to accept new write commands depending on the maxmemory-policy.");
serverLog(LL_WARNING,"WARNING: the new maxmemory value set via CONFIG SET (%llu) is smaller than the current memory usage (%zu). This will result in key eviction and/or the inability to accept new write commands depending on the maxmemory-policy.",server.maxmemory,used);
createBoolConfig("cluster-replica-no-failover","cluster-slave-no-failover",MODIFIABLE_CONFIG,server.cluster_slave_no_failover,0,NULL,NULL),/* Failover by default. */
createIntConfig("cluster-replica-validity-factor","cluster-slave-validity-factor",MODIFIABLE_CONFIG,0,INT_MAX,server.cluster_slave_validity_factor,10,INTEGER_CONFIG,NULL,NULL),/* Slave max data age factor. */
createIntConfig("active-defrag-cycle-min",NULL,MODIFIABLE_CONFIG,1,99,server.active_defrag_cycle_min,1,INTEGER_CONFIG,NULL,NULL),/* Default: 1% CPU min (at lower threshold) */
createIntConfig("active-defrag-cycle-max",NULL,MODIFIABLE_CONFIG,1,99,server.active_defrag_cycle_max,25,INTEGER_CONFIG,NULL,NULL),/* Default: 25% CPU max (at upper threshold) */
createIntConfig("active-defrag-threshold-lower",NULL,MODIFIABLE_CONFIG,0,1000,server.active_defrag_threshold_lower,10,INTEGER_CONFIG,NULL,NULL),/* Default: don't defrag when fragmentation is below 10% */
createIntConfig("active-defrag-threshold-upper",NULL,MODIFIABLE_CONFIG,0,1000,server.active_defrag_threshold_upper,100,INTEGER_CONFIG,NULL,NULL),/* Default: maximum defrag force at 100% fragmentation */
createULongConfig("active-defrag-max-scan-fields",NULL,MODIFIABLE_CONFIG,1,LONG_MAX,server.active_defrag_max_scan_fields,1000,INTEGER_CONFIG,NULL,NULL),/* Default: keys with more than 1000 fields will be processed separately */