提交 1fd9bc8a 编写于 作者: A antirez

Changes to TODO list, commented a function in redis.c

上级 2014c437
...@@ -7,7 +7,6 @@ Most of the features already implemented for this release. The following is a li ...@@ -7,7 +7,6 @@ Most of the features already implemented for this release. The following is a li
* For now only the last argument gets integer encoded, so make sure that: 1) every multi bulk command implemented will have the last arg that is indeed a value, and not used otherwise. 2) to explicitly call the function to encode the object in MSET and other commands where there are multiple "values". * For now only the last argument gets integer encoded, so make sure that: 1) every multi bulk command implemented will have the last arg that is indeed a value, and not used otherwise. 2) to explicitly call the function to encode the object in MSET and other commands where there are multiple "values".
* Man pages for SRANDMEMBER, missing Z-commands, ... * Man pages for SRANDMEMBER, missing Z-commands, ...
* Use strcoll() to compare objects in sorted sets, like it already happens for SORT.
* Write docs for the "STORE" operaiton of SORT. Link to the article about SORT by written by defunkt. * Write docs for the "STORE" operaiton of SORT. Link to the article about SORT by written by defunkt.
* ZRANGEBYSCORE test, ZRANGEBYSCORE LIMIT option. * ZRANGEBYSCORE test, ZRANGEBYSCORE LIMIT option.
* Sorted sets infinity tests. * Sorted sets infinity tests.
......
...@@ -2309,7 +2309,11 @@ static robj *getDecodedObject(robj *o) { ...@@ -2309,7 +2309,11 @@ static robj *getDecodedObject(robj *o) {
/* Compare two string objects via strcmp() or alike. /* Compare two string objects via strcmp() or alike.
* Note that the objects may be integer-encoded. In such a case we * Note that the objects may be integer-encoded. In such a case we
* use snprintf() to get a string representation of the numbers on the stack * use snprintf() to get a string representation of the numbers on the stack
* and compare the strings, it's much faster than calling getDecodedObject(). */ * and compare the strings, it's much faster than calling getDecodedObject().
*
* Important note: if objects are not integer encoded, but binary-safe strings,
* sdscmp() from sds.c will apply memcmp() so this function ca be considered
* binary safe. */
static int compareStringObjects(robj *a, robj *b) { static int compareStringObjects(robj *a, robj *b) {
assert(a->type == REDIS_STRING && b->type == REDIS_STRING); assert(a->type == REDIS_STRING && b->type == REDIS_STRING);
char bufa[128], bufb[128], *astr, *bstr; char bufa[128], bufb[128], *astr, *bstr;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册