version: redis 4.0.14

127.0.0.1:6379> CONFIG SET client-output-buffer-limit "slave 1024mb 512mb 180" OK 127.0.0.1:6379> CONFIG GET client-output-buffer-limit 1) "client-output-buffer-limit" 2) "normal 0 0 0 slave 1024 512 180 pubsub 33554432 8388608 60"

But Use the same command to execute on redis 5.0.13, mb will be converted to bytes

127.0.0.1:6379> CONFIG GET client-output-buffer-limit 1) "client-output-buffer-limit" 2) "normal 0 0 0 slave 1073741824 536870912 180 pubsub 33554432 8388608 60"

Comment From: sundb

This is a bug fixed by https://github.com/redis/redis/commit/516f1c7722e7c84acdfee7dcdb810501039da055.

Comment From: dhlic

thx !