redict/tests/unit/type
Matt Stancliff 33f943b4cd Fix blocking operations from missing new lists
Behrad Zari discovered [1] and Josiah reported [2]: if you block
and wait for a list to exist, but the list creates from
a non-push command, the blocked client never gets notified.

This commit adds notification of blocked clients into
the DB layer and away from individual commands.

Lists can be created by [LR]PUSH, SORT..STORE, RENAME, MOVE,
and RESTORE.  Previously, blocked client notifications were
only triggered by [LR]PUSH.  Your client would never get
notified if a list were created by SORT..STORE or RENAME or
a RESTORE, etc.

Blocked client notification now happens in one unified place:
  - dbAdd() triggers notification when adding a list to the DB

Two new tests are added that fail prior to this commit.

All test pass.

Fixes #1668

[1]: https://groups.google.com/forum/#!topic/redis-db/k4oWfMkN1NU
[2]: #1668
2014-05-21 09:52:52 -04:00
..
hash.tcl Added a new hash fuzzy tester. 2012-06-12 15:21:54 +02:00
list-2.tcl list test further split into smaller units 2011-07-11 11:41:23 +02:00
list-3.tcl Ziplist encoding now tested with negative integers as well. 2012-04-23 17:27:46 +02:00
list-common.tcl list test split into smaller parts 2011-07-11 11:30:46 +02:00
list.tcl Fix blocking operations from missing new lists 2014-05-21 09:52:52 -04:00
set.tcl SDIFF iterator misuse bug regression test added. 2013-12-13 11:37:13 +01:00
zset.tcl Fuzzy test for ZREMRANGEBYLEX added. 2014-04-18 13:02:16 +02:00