@@ -397,9 +397,13 @@ void loadServerConfigFromString(char *config) {
397397 } else if (!strcasecmp (argv [0 ],"hash-max-ziplist-value" ) && argc == 2 ) {
398398 server .hash_max_ziplist_value = memtoll (argv [1 ], NULL );
399399 } else if (!strcasecmp (argv [0 ],"list-max-ziplist-entries" ) && argc == 2 ){
400- server . list_max_ziplist_entries = memtoll ( argv [ 1 ], NULL );
400+ /* DEAD OPTION */
401401 } else if (!strcasecmp (argv [0 ],"list-max-ziplist-value" ) && argc == 2 ) {
402- server .list_max_ziplist_value = memtoll (argv [1 ], NULL );
402+ /* DEAD OPTION */
403+ } else if (!strcasecmp (argv [0 ],"list-max-ziplist-size" ) && argc == 2 ) {
404+ server .list_max_ziplist_size = atoi (argv [1 ]);
405+ } else if (!strcasecmp (argv [0 ],"list-compress-depth" ) && argc == 2 ) {
406+ server .list_compress_depth = atoi (argv [1 ]);
403407 } else if (!strcasecmp (argv [0 ],"set-max-intset-entries" ) && argc == 2 ) {
404408 server .set_max_intset_entries = memtoll (argv [1 ], NULL );
405409 } else if (!strcasecmp (argv [0 ],"zset-max-ziplist-entries" ) && argc == 2 ) {
@@ -795,12 +799,12 @@ void configSetCommand(redisClient *c) {
795799 } else if (!strcasecmp (c -> argv [2 ]-> ptr ,"hash-max-ziplist-value" )) {
796800 if (getLongLongFromObject (o ,& ll ) == REDIS_ERR || ll < 0 ) goto badfmt ;
797801 server .hash_max_ziplist_value = ll ;
798- } else if (!strcasecmp (c -> argv [2 ]-> ptr ,"list-max-ziplist-entries " )) {
802+ } else if (!strcasecmp (c -> argv [2 ]-> ptr ,"list-max-ziplist-size " )) {
799803 if (getLongLongFromObject (o ,& ll ) == REDIS_ERR || ll < 0 ) goto badfmt ;
800- server .list_max_ziplist_entries = ll ;
801- } else if (!strcasecmp (c -> argv [2 ]-> ptr ,"list-max-ziplist-value " )) {
804+ server .list_max_ziplist_size = ll ;
805+ } else if (!strcasecmp (c -> argv [2 ]-> ptr ,"list-compress-depth " )) {
802806 if (getLongLongFromObject (o ,& ll ) == REDIS_ERR || ll < 0 ) goto badfmt ;
803- server .list_max_ziplist_value = ll ;
807+ server .list_compress_depth = ll ;
804808 } else if (!strcasecmp (c -> argv [2 ]-> ptr ,"set-max-intset-entries" )) {
805809 if (getLongLongFromObject (o ,& ll ) == REDIS_ERR || ll < 0 ) goto badfmt ;
806810 server .set_max_intset_entries = ll ;
@@ -1047,10 +1051,10 @@ void configGetCommand(redisClient *c) {
10471051 server .hash_max_ziplist_entries );
10481052 config_get_numerical_field ("hash-max-ziplist-value" ,
10491053 server .hash_max_ziplist_value );
1050- config_get_numerical_field ("list-max-ziplist-entries " ,
1051- server .list_max_ziplist_entries );
1052- config_get_numerical_field ("list-max-ziplist-value " ,
1053- server .list_max_ziplist_value );
1054+ config_get_numerical_field ("list-max-ziplist-size " ,
1055+ server .list_max_ziplist_size );
1056+ config_get_numerical_field ("list-compress-depth " ,
1057+ server .list_compress_depth );
10541058 config_get_numerical_field ("set-max-intset-entries" ,
10551059 server .set_max_intset_entries );
10561060 config_get_numerical_field ("zset-max-ziplist-entries" ,
@@ -1857,8 +1861,8 @@ int rewriteConfig(char *path) {
18571861 rewriteConfigNotifykeyspaceeventsOption (state );
18581862 rewriteConfigNumericalOption (state ,"hash-max-ziplist-entries" ,server .hash_max_ziplist_entries ,REDIS_HASH_MAX_ZIPLIST_ENTRIES );
18591863 rewriteConfigNumericalOption (state ,"hash-max-ziplist-value" ,server .hash_max_ziplist_value ,REDIS_HASH_MAX_ZIPLIST_VALUE );
1860- rewriteConfigNumericalOption (state ,"list-max-ziplist-entries " ,server .list_max_ziplist_entries , REDIS_LIST_MAX_ZIPLIST_ENTRIES );
1861- rewriteConfigNumericalOption (state ,"list-max-ziplist-value " ,server .list_max_ziplist_value , REDIS_LIST_MAX_ZIPLIST_VALUE );
1864+ rewriteConfigNumericalOption (state ,"list-max-ziplist-size " ,server .list_max_ziplist_size , REDIS_LIST_MAX_ZIPLIST_SIZE );
1865+ rewriteConfigNumericalOption (state ,"list-compress-depth " ,server .list_compress_depth , REDIS_LIST_COMPRESS_DEPTH );
18621866 rewriteConfigNumericalOption (state ,"set-max-intset-entries" ,server .set_max_intset_entries ,REDIS_SET_MAX_INTSET_ENTRIES );
18631867 rewriteConfigNumericalOption (state ,"zset-max-ziplist-entries" ,server .zset_max_ziplist_entries ,REDIS_ZSET_MAX_ZIPLIST_ENTRIES );
18641868 rewriteConfigNumericalOption (state ,"zset-max-ziplist-value" ,server .zset_max_ziplist_value ,REDIS_ZSET_MAX_ZIPLIST_VALUE );
0 commit comments