Merge branch 'unstable' of github.com:/antirez/redis into unstable
This commit is contained in:
commit
1dd36347ed
@ -1242,7 +1242,7 @@ void pfcountCommand(client *c) {
|
|||||||
if (o == NULL) continue; /* Assume empty HLL for non existing var.*/
|
if (o == NULL) continue; /* Assume empty HLL for non existing var.*/
|
||||||
if (isHLLObjectOrReply(c,o) != C_OK) return;
|
if (isHLLObjectOrReply(c,o) != C_OK) return;
|
||||||
|
|
||||||
/* Merge with this HLL with our 'max' HHL by setting max[i]
|
/* Merge with this HLL with our 'max' HLL by setting max[i]
|
||||||
* to MAX(max[i],hll[i]). */
|
* to MAX(max[i],hll[i]). */
|
||||||
if (hllMerge(registers,o) == C_ERR) {
|
if (hllMerge(registers,o) == C_ERR) {
|
||||||
addReplySds(c,sdsnew(invalid_hll_err));
|
addReplySds(c,sdsnew(invalid_hll_err));
|
||||||
@ -1329,7 +1329,7 @@ void pfmergeCommand(client *c) {
|
|||||||
hdr = o->ptr;
|
hdr = o->ptr;
|
||||||
if (hdr->encoding == HLL_DENSE) use_dense = 1;
|
if (hdr->encoding == HLL_DENSE) use_dense = 1;
|
||||||
|
|
||||||
/* Merge with this HLL with our 'max' HHL by setting max[i]
|
/* Merge with this HLL with our 'max' HLL by setting max[i]
|
||||||
* to MAX(max[i],hll[i]). */
|
* to MAX(max[i],hll[i]). */
|
||||||
if (hllMerge(max,o) == C_ERR) {
|
if (hllMerge(max,o) == C_ERR) {
|
||||||
addReplySds(c,sdsnew(invalid_hll_err));
|
addReplySds(c,sdsnew(invalid_hll_err));
|
||||||
|
@ -2389,7 +2389,7 @@ int RM_HashSet(RedisModuleKey *key, int flags, ...) {
|
|||||||
*
|
*
|
||||||
* REDISMODULE_HASH_EXISTS: instead of setting the value of the field
|
* REDISMODULE_HASH_EXISTS: instead of setting the value of the field
|
||||||
* expecting a RedisModuleString pointer to pointer, the function just
|
* expecting a RedisModuleString pointer to pointer, the function just
|
||||||
* reports if the field esists or not and expects an integer pointer
|
* reports if the field exists or not and expects an integer pointer
|
||||||
* as the second element of each pair.
|
* as the second element of each pair.
|
||||||
*
|
*
|
||||||
* Example of REDISMODULE_HASH_CFIELD:
|
* Example of REDISMODULE_HASH_CFIELD:
|
||||||
@ -3288,7 +3288,7 @@ RedisModuleString *RM_LoadString(RedisModuleIO *io) {
|
|||||||
* RedisModule_Realloc() or RedisModule_Free().
|
* RedisModule_Realloc() or RedisModule_Free().
|
||||||
*
|
*
|
||||||
* The size of the string is stored at '*lenptr' if not NULL.
|
* The size of the string is stored at '*lenptr' if not NULL.
|
||||||
* The returned string is not automatically NULL termianted, it is loaded
|
* The returned string is not automatically NULL terminated, it is loaded
|
||||||
* exactly as it was stored inisde the RDB file. */
|
* exactly as it was stored inisde the RDB file. */
|
||||||
char *RM_LoadStringBuffer(RedisModuleIO *io, size_t *lenptr) {
|
char *RM_LoadStringBuffer(RedisModuleIO *io, size_t *lenptr) {
|
||||||
return moduleLoadString(io,1,lenptr);
|
return moduleLoadString(io,1,lenptr);
|
||||||
|
@ -1440,7 +1440,7 @@ NULL
|
|||||||
#if defined(USE_JEMALLOC)
|
#if defined(USE_JEMALLOC)
|
||||||
sds info = sdsempty();
|
sds info = sdsempty();
|
||||||
je_malloc_stats_print(inputCatSds, &info, NULL);
|
je_malloc_stats_print(inputCatSds, &info, NULL);
|
||||||
addReplyVerbatim(c,info,sdslen(info),"txt")
|
addReplyVerbatim(c,info,sdslen(info),"txt");
|
||||||
sdsfree(info);
|
sdsfree(info);
|
||||||
#else
|
#else
|
||||||
addReplyBulkCString(c,"Stats not supported for the current allocator");
|
addReplyBulkCString(c,"Stats not supported for the current allocator");
|
||||||
|
@ -260,7 +260,7 @@ int rdbEncodeInteger(long long value, unsigned char *enc) {
|
|||||||
|
|
||||||
/* Loads an integer-encoded object with the specified encoding type "enctype".
|
/* Loads an integer-encoded object with the specified encoding type "enctype".
|
||||||
* The returned value changes according to the flags, see
|
* The returned value changes according to the flags, see
|
||||||
* rdbGenerincLoadStringObject() for more info. */
|
* rdbGenericLoadStringObject() for more info. */
|
||||||
void *rdbLoadIntegerObject(rio *rdb, int enctype, int flags, size_t *lenptr) {
|
void *rdbLoadIntegerObject(rio *rdb, int enctype, int flags, size_t *lenptr) {
|
||||||
int plain = flags & RDB_LOAD_PLAIN;
|
int plain = flags & RDB_LOAD_PLAIN;
|
||||||
int sds = flags & RDB_LOAD_SDS;
|
int sds = flags & RDB_LOAD_SDS;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user