antirez ee789e157c Dump ziplist hex value on failed assertion.
The ziplist -> hashtable conversion code is triggered every time an hash
value must be promoted to a full hash table because the number or size of
elements reached the threshold.

If a problem in the ziplist causes the same field to be present
multiple times, the assertion of successful addition of the element
inside the hash table will fail, crashing server with a failed
assertion, but providing little information about the problem.

This code adds a new logging function to perform the hex dump of binary
data, and makes sure that the ziplist -> hashtable conversion code uses
this new logging facility to dump the content of the ziplist when the
assertion fails.

This change was originally made in order to investigate issue #547.
2012-06-12 00:41:48 +02:00
..
2012-04-13 17:52:33 -07:00
2012-05-15 11:19:01 +02:00
2011-04-13 10:58:21 +02:00
2011-09-15 18:25:53 +02:00
2012-05-15 11:18:54 +02:00
2012-05-01 10:52:03 +02:00
2011-02-28 14:48:49 +01:00
2012-05-24 15:20:06 +02:00
2012-04-11 12:12:30 +02:00
2012-04-02 11:56:03 +02:00
2012-06-02 10:24:27 +02:00
2012-05-14 17:35:51 +02:00
2012-03-30 21:19:51 +02:00
2012-03-30 21:19:51 +02:00
2011-03-09 15:44:21 +01:00
2012-03-09 22:07:45 +01:00
2012-01-02 15:24:50 -08:00
2011-07-06 15:22:00 +02:00
2012-04-10 16:34:33 +02:00
2012-01-03 16:13:42 -08:00
2012-05-16 11:09:45 +02:00