Mikhail Fesenko
740c41c0f2
Direct redis-cli repl prints to stderr, because --rdb can print to stdout. fflush stdout after responses ( #9136 )
...
1. redis-cli can output --rdb data to stdout
but redis-cli also write some messages to stdout which will mess up the rdb.
2. Make redis-cli flush stdout when printing a reply
This was needed in order to fix a hung in redis-cli test that uses
--replica.
Note that printf does flush when there's a newline, but fwrite does not.
3. fix the redis-cli --replica test which used to pass previously
because it didn't really care what it read, and because redis-cli
used printf to print these other things to stdout.
4. improve redis-cli --replica test to run with both diskless and disk-based.
Co-authored-by: Oran Agra <oran@redislabs.com>
Co-authored-by: Viktor Söderqvist <viktor@zuiderkwast.se>
(cherry picked from commit 1eb4baa5b8e76adc337ae9fab49acc2585a0cdd0)
2021-07-21 21:06:49 +03:00
..
2021-07-21 21:06:49 +03:00
2021-06-01 17:03:36 +03:00
2020-11-09 21:48:56 -08:00
2020-04-08 12:55:57 +02:00
2021-04-13 07:35:03 +03:00
2021-01-19 22:57:30 +02:00
2021-01-19 22:57:30 +02:00
2016-06-07 16:46:00 -04:00
2021-04-13 07:35:03 +03:00
2020-08-28 11:54:10 +03:00
2021-03-17 12:52:24 +02:00
2021-03-17 12:52:24 +02:00
2021-07-21 21:06:49 +03:00
2021-03-10 19:11:16 +02:00
2020-12-13 17:09:54 +02:00
2021-04-11 08:14:31 +03:00
2020-12-23 19:13:12 -08:00
2020-12-23 19:06:25 -08:00
2021-04-06 12:29:02 +03:00
2021-06-01 17:03:36 +03:00
2021-02-07 12:36:56 +02:00
2021-02-07 12:36:56 +02:00
2021-06-01 17:03:36 +03:00
2021-03-30 23:11:32 +03:00
2021-06-01 17:03:36 +03:00
2021-02-23 12:57:45 +02:00
2021-03-01 08:18:14 +02:00
2020-10-28 21:13:44 +02:00
2020-03-22 14:42:03 +02:00
2019-03-01 17:53:14 +01:00
2015-07-26 15:17:18 +02:00
2021-03-10 09:13:11 +02:00
2021-03-10 09:13:11 +02:00
2021-01-05 09:15:10 +02:00
2020-04-24 17:11:21 -07:00
2021-05-03 22:57:00 +03:00
2021-07-21 21:06:49 +03:00
2020-12-21 22:57:45 -08:00
2021-03-28 15:16:30 +03:00
2021-03-10 09:13:11 +02:00
2021-03-10 09:13:11 +02:00
2021-03-10 09:13:11 +02:00
2021-03-10 09:13:11 +02:00
2021-02-08 09:29:32 -08:00
2021-02-21 09:09:54 +02:00
2021-02-23 12:57:45 +02:00
2021-02-04 18:08:35 +02:00
2015-07-26 15:17:18 +02:00
2021-02-04 18:08:35 +02:00
2021-02-04 18:08:35 +02:00
2020-04-09 17:48:29 +08:00
2020-12-12 02:21:05 +02:00
2019-02-24 21:38:15 +01:00
2021-04-06 12:42:18 +03:00
2020-12-23 19:06:25 -08:00
2021-05-03 22:57:00 +03:00
2021-03-10 09:13:11 +02:00
2021-03-10 19:11:16 +02:00
2020-10-27 15:04:18 +02:00
2021-06-01 17:03:36 +03:00
2021-02-16 16:17:38 +02:00
2021-04-14 15:46:54 +03:00
2021-02-16 16:17:38 +02:00
2018-09-18 17:04:00 +08:00
2021-02-24 10:10:02 +02:00
2019-10-28 11:10:58 +01:00
2021-05-03 22:57:00 +03:00
2020-05-05 23:35:08 -04:00
2015-01-02 11:16:10 -05:00
2020-12-06 14:54:34 +02:00
2014-06-26 18:48:40 +02:00
2020-09-10 13:43:38 +03:00
2021-07-21 21:06:49 +03:00
2021-05-03 22:57:00 +03:00
2019-11-19 17:23:47 +08:00
2021-07-21 21:06:49 +03:00
2020-08-28 11:54:10 +03:00
2020-08-28 11:54:10 +03:00
2020-12-23 15:52:07 +02:00
2020-12-23 15:52:07 +02:00
2021-07-21 21:06:49 +03:00
2021-07-21 21:06:49 +03:00
2021-04-19 21:33:26 +03:00
2021-07-21 21:06:49 +03:00
2014-06-26 18:48:40 +02:00
2021-03-26 14:10:01 +03:00
2021-03-10 09:13:11 +02:00
2021-03-10 09:13:11 +02:00
2014-08-08 10:05:32 +02:00
2017-03-27 16:37:22 +02:00
2021-01-09 19:52:42 +02:00
2020-09-10 13:43:38 +03:00
2021-07-21 21:06:49 +03:00
2021-02-08 09:29:32 -08:00
2021-06-01 17:03:36 +03:00
2021-05-03 22:57:00 +03:00
2021-05-03 22:57:00 +03:00
2021-07-21 21:06:49 +03:00
2018-07-13 10:51:58 +02:00
2020-12-06 14:54:34 +02:00
2021-07-21 21:06:49 +03:00
2019-10-02 11:30:20 +02:00
2021-06-01 17:03:36 +03:00
2021-04-01 12:45:15 +03:00
2019-10-07 21:06:30 +03:00
2021-06-01 17:03:36 +03:00
2021-03-10 09:13:11 +02:00
2021-03-10 09:13:11 +02:00
2020-12-06 14:54:34 +02:00
2021-06-01 17:03:36 +03:00
2021-07-21 21:06:49 +03:00
2021-07-21 21:06:49 +03:00
2020-10-25 14:14:05 +02:00
2021-02-23 12:57:45 +02:00
2021-03-10 09:13:11 +02:00
2021-03-10 09:13:11 +02:00
2019-09-12 12:21:37 +02:00
2019-09-12 12:21:37 +02:00
2020-09-10 13:43:38 +03:00
2021-01-04 17:02:57 +02:00
2019-12-02 00:28:41 -05:00
2015-01-09 11:23:22 +01:00
2021-01-04 10:28:47 +02:00
2020-09-10 13:43:38 +03:00
2014-07-02 16:31:22 +02:00
2021-01-28 16:19:43 +02:00
2015-08-06 18:12:20 +02:00
2021-07-21 21:06:49 +03:00
2021-04-07 10:28:53 +03:00
2021-06-01 17:03:36 +03:00
2021-07-21 21:06:49 +03:00
2021-06-01 17:03:36 +03:00
2021-07-21 21:06:49 +03:00
2020-12-21 22:57:45 -08:00
2020-07-21 08:13:05 +03:00
2021-03-22 13:27:46 +02:00
2021-07-21 21:06:49 +03:00
2021-03-10 09:13:11 +02:00
2021-03-10 09:13:11 +02:00
2020-12-06 14:54:34 +02:00
2021-06-01 17:03:36 +03:00
2021-07-21 21:06:49 +03:00
2021-03-10 09:13:11 +02:00
2021-04-14 15:46:54 +03:00
2021-03-10 09:13:11 +02:00
2021-03-22 13:25:58 +02:00
2021-03-10 09:13:11 +02:00