Oran Agra 40d7fca368
Fix harmless bug in rioConnRead (#7557)
this code is in use only if the master is disk-based, and the replica is
diskless. In this case we use a buffered reader, but we must avoid reading
past the rdb file, into the command stream. which Luckly rdb.c doesn't
really attempt to do (it knows how much it should read).

When rioConnRead detects that the extra buffering attempt reaches beyond
the read limit it should read less, but if the caller actually requested
more, then it should return with an error rather than a short read. the
bug would have resulted in short read.

in order to fix it, the code must consider the real requested size, and
not the extra buffering size.
2020-07-23 12:37:43 +03:00
..
2020-07-21 08:13:05 +03:00
2020-05-02 21:19:47 +08:00
2019-11-20 20:39:04 -05:00
2019-07-17 16:40:24 +03:00
2020-05-05 10:20:48 +02:00
2020-04-24 17:00:03 -07:00
2020-04-24 17:11:21 -07:00
2020-04-24 17:11:21 -07:00
2020-06-17 22:22:49 +02:00
2020-07-21 08:13:05 +03:00
2018-07-03 18:19:46 +02:00
2019-02-24 21:38:15 +01:00
2020-06-12 12:16:19 +02:00
2019-10-24 14:24:55 +03:00
2020-06-16 17:50:38 +08:00
2020-05-05 23:35:08 -04:00
2019-11-19 17:23:47 +08:00
2020-04-02 23:43:47 +08:00
2020-07-21 08:13:05 +03:00
2020-04-09 12:10:10 +02:00
2018-07-03 18:19:46 +02:00
2019-10-02 11:30:20 +02:00
2020-07-23 12:37:43 +03:00
2020-04-06 19:27:06 +08:00
2020-04-16 16:08:37 +02:00
2020-02-22 11:38:51 -05:00
2020-05-12 21:21:22 +01:00
2018-11-11 18:49:55 +00:00
2020-06-24 09:09:43 +02:00
2020-07-21 08:13:05 +03:00