antirez 156f26d0be Fix zslUpdateScore() edge case.
When the element new score is the same of prev/next node, the
lexicographical order kicks in, so we can safely update the node in
place only when the new score is strictly between the adjacent nodes
but never equal to one of them.

Technically speaking we could do extra checks to make sure that even if the
score is the same as one of the adjacent nodes, we can still update on
place, but this rarely happens, so probably not a good deal to make it
more complex.

Related to #5179.
2018-08-01 19:04:53 +02:00
..
2018-07-03 18:19:46 +02:00
2016-04-25 16:49:57 +03:00
2016-06-07 16:46:00 -04:00
2018-07-04 20:04:06 +08:00
2018-03-21 15:34:13 +08:00
2016-04-04 08:50:58 +02:00
2018-07-03 18:19:46 +02:00
2015-10-01 13:02:25 +02:00
2018-07-03 18:19:46 +02:00
2018-07-03 18:19:46 +02:00
2018-07-18 10:16:33 +03:00
2018-07-17 10:39:47 +02:00
2017-12-05 15:38:03 +01:00
2018-07-03 18:19:46 +02:00
2018-06-21 22:08:09 +08:00
2018-07-03 18:19:46 +02:00
2018-06-12 15:28:28 +08:00
2016-07-27 11:34:25 +02:00
2018-06-27 16:33:31 +03:00
2018-07-03 18:19:46 +02:00
2018-07-03 18:19:46 +02:00
2018-07-13 09:46:30 -06:00
2018-07-30 16:18:56 +03:00
2018-07-03 18:19:46 +02:00
2014-08-08 10:05:32 +02:00
2018-07-03 18:19:46 +02:00
2018-07-03 18:19:46 +02:00
2018-07-03 18:19:46 +02:00
2018-07-12 21:21:37 +08:00
2018-07-03 18:19:46 +02:00
2018-07-03 18:19:46 +02:00
2015-04-27 12:07:49 +02:00
2015-04-27 12:07:49 +02:00
2018-07-03 18:19:46 +02:00
2014-07-02 16:31:22 +02:00
2018-07-31 16:41:33 +02:00
2018-07-31 18:08:52 +02:00
2018-08-01 19:04:53 +02:00
2018-07-24 10:27:20 +02:00
2017-01-11 19:24:19 +02:00
2018-07-03 18:19:46 +02:00
2018-07-22 10:17:35 +03:00