]> git.saurik.com Git - redis.git/commitdiff
added regression for zipmap bug
authorantirez <antirez@gmail.com>
Thu, 20 May 2010 10:03:02 +0000 (12:03 +0200)
committerantirez <antirez@gmail.com>
Thu, 20 May 2010 10:03:02 +0000 (12:03 +0200)
TODO
tests/unit/type/hash.tcl

diff --git a/TODO b/TODO
index 7a9b70745d5b5f06dd77015242f9fe3d10c2a109..d02e260c8f94a5d8b3130005f2c1d8f1b5560bf4 100644 (file)
--- a/TODO
+++ b/TODO
@@ -9,6 +9,7 @@ VERSION 2.2 TODO (Optimizations and latency)
 * Specially encoded Sets (like Hashes).
 * Implement an UDP interface for low-latency operations.
 * What about a special coding that is about storing the "rdb" serialized format instead of the actual value? This can be used when we have LRU in order to super-compress data into memory, for data not accessed frequetly. It's a VM-alike strategy but fully in memory, may reduce the space to hold some dataset in an impressive way. Trivial to implement.
+* Another idea: LRU does not need to be super precise right? Maybe it's a good idea to just put into the skiplist implementing the LRU just the pointer to the key without evne incr/decr business, nor the need to remove the pointer when the key is deleted. There is to think more about that.
 
 VERSION 2.x TODO
 ================
index 3fdc05e0a936d3365d0661f419f3b8a0c0644efe..0d08cc556120482374c6b091a780dd480c73e090 100644 (file)
@@ -286,4 +286,10 @@ start_server default.conf {} {
         lappend rv [string match "ERR*not an integer*" $smallerr]
         lappend rv [string match "ERR*not an integer*" $bigerr]
     } {1 1}
+
+    test {Hash zipmap regression test for large keys} {
+        r hset hash kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk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