antirez
c6dfff5b61
serverPanic(): allow printf() alike formatting.
...
This is of great interest because allows us to print debugging
informations that could be of useful when debugging, like in the
following example:
serverPanic("Unexpected encoding for object %d, %d",
obj->type, obj->encoding);
2017-01-18 17:05:10 +01:00
antirez
2cd1ae736f
Ziplist: remove static from functions, they prevent good crash reports.
2017-01-13 11:55:13 +01:00
antirez
eee3784224
Ziplist: remove static from functions, they prevent good crash reports.
2017-01-13 11:55:13 +01:00
Salvatore Sanfilippo
d21aabcedc
Merge pull request #3734 from badboy/avoid-command
...
Initialize help only in repl mode
2017-01-13 11:32:22 +01:00
Salvatore Sanfilippo
644999645b
Merge pull request #3734 from badboy/avoid-command
...
Initialize help only in repl mode
2017-01-13 11:32:22 +01:00
antirez
636c693f44
Use const in modules types mem_usage method.
...
As suggested by @itamarhaber.
2017-01-12 12:47:46 +01:00
antirez
c0837ddbcc
Use const in modules types mem_usage method.
...
As suggested by @itamarhaber.
2017-01-12 12:47:46 +01:00
antirez
3f79b2f883
Defrag: don't crash when a module value is encountered.
2017-01-12 09:50:40 +01:00
antirez
46f2263a45
Defrag: don't crash when a module value is encountered.
2017-01-12 09:50:40 +01:00
antirez
baa9898821
MEMORY USAGE: support for modules data types.
...
As a side effect of supporting it, we no longer crash when MEMORY USAGE
is called against a module data type.
Close #3637 .
2017-01-12 09:47:57 +01:00
antirez
d4593397a7
MEMORY USAGE: support for modules data types.
...
As a side effect of supporting it, we no longer crash when MEMORY USAGE
is called against a module data type.
Close #3637 .
2017-01-12 09:47:57 +01:00
Guy Benoish
56c01c959a
enlarged buffer given to ld2string
2017-01-11 19:24:19 +02:00
Guy Benoish
fa59d52356
enlarged buffer given to ld2string
2017-01-11 19:24:19 +02:00
antirez
634b096610
Defrag: document the feature in redis.conf.
2017-01-11 17:24:49 +01:00
antirez
701a69ed4d
Defrag: document the feature in redis.conf.
2017-01-11 17:24:49 +01:00
antirez
6ad34a4b78
Defrag: not enabled by default. Error on CONFIG SET if not available.
2017-01-11 15:43:08 +01:00
antirez
eabcf0fed8
Defrag: not enabled by default. Error on CONFIG SET if not available.
2017-01-11 15:43:08 +01:00
antirez
86192f3038
Defrag: fix function name typo defarg -> defrag.
2017-01-11 15:38:12 +01:00
antirez
57c80d1fca
Defrag: fix function name typo defarg -> defrag.
2017-01-11 15:38:12 +01:00
antirez
4186879675
Defrag: do not crash on empty quicklist.
2017-01-11 15:38:09 +01:00
antirez
f11a12e915
Defrag: do not crash on empty quicklist.
2017-01-11 15:38:09 +01:00
antirez
e91f0ea1b3
Defrag: fix comments & code to conform to the Redis code base.
...
Don't go over 80 cols. Start with captial letter, capital letter afer
point, end comment with a point and so forth. No actual code behavior
touched at all.
2017-01-10 11:33:50 +01:00
antirez
da55ed0032
Defrag: fix comments & code to conform to the Redis code base.
...
Don't go over 80 cols. Start with captial letter, capital letter afer
point, end comment with a point and so forth. No actual code behavior
touched at all.
2017-01-10 11:33:50 +01:00
antirez
173d692bc2
Defrag: activate it only if running modified version of Jemalloc.
...
This commit also includes minor aesthetic changes like removal of
trailing spaces.
2017-01-10 11:25:39 +01:00
antirez
e4f25b015c
Defrag: activate it only if running modified version of Jemalloc.
...
This commit also includes minor aesthetic changes like removal of
trailing spaces.
2017-01-10 11:25:39 +01:00
Jan-Erik Rediger
afaaa91885
Initialize help only in repl mode
2017-01-08 18:29:22 +01:00
Jan-Erik Rediger
9c77672458
Initialize help only in repl mode
2017-01-08 18:29:22 +01:00
oranagra
5ab6a54cc6
active defrag improvements
2017-01-02 09:42:32 +02:00
oranagra
763f49243d
active defrag improvements
2017-01-02 09:42:32 +02:00
oranagra
7aa9e6d2ae
active memory defragmentation
2016-12-30 03:37:52 +02:00
oranagra
53511a429c
active memory defragmentation
2016-12-30 03:37:52 +02:00
oranagra
b2da5ea773
fix rare assertion in DEBUG DIGEST
...
getExpire calls dictFind which can do rehashing.
found by calling computeDatasetDigest from serverCron and running the test suite.
2016-12-24 17:27:58 +02:00
oranagra
8528bbaf6c
fix rare assertion in DEBUG DIGEST
...
getExpire calls dictFind which can do rehashing.
found by calling computeDatasetDigest from serverCron and running the test suite.
2016-12-24 17:27:58 +02:00
antirez
6712bce92c
deps/hiredis updated to latest version.
...
Close #3687 .
2016-12-21 12:12:36 +01:00
antirez
8155b2fca4
deps/hiredis updated to latest version.
...
Close #3687 .
2016-12-21 12:12:36 +01:00
Salvatore Sanfilippo
0b7691201e
Merge pull request #3242 from whatacold/unstable
...
fix the wrong description of intsetGet().
2016-12-20 15:39:56 +01:00
Salvatore Sanfilippo
44c6326c11
Merge pull request #3242 from whatacold/unstable
...
fix the wrong description of intsetGet().
2016-12-20 15:39:56 +01:00
Salvatore Sanfilippo
43bccbc3f4
Merge pull request #3498 from ZhukovAlexander/patch-1
...
Fix an article usage
2016-12-20 13:39:29 +01:00
Salvatore Sanfilippo
4a670f7453
Merge pull request #3498 from ZhukovAlexander/patch-1
...
Fix an article usage
2016-12-20 13:39:29 +01:00
antirez
a764c87b67
Merge branch 'unstable' of github.com:/antirez/redis into unstable
2016-12-20 13:33:10 +01:00
antirez
d13144285b
Merge branch 'unstable' of github.com:/antirez/redis into unstable
2016-12-20 13:33:10 +01:00
Salvatore Sanfilippo
619317da6f
Merge pull request #3696 from jstncarvalho/FixMissingBrackets_ZIP_DECODE_LENGTH
...
Fix missing brackets around encoding variable in ZIP_DECODE_LENGTH macro
2016-12-20 13:32:54 +01:00
Salvatore Sanfilippo
c77e46af5c
Merge pull request #3696 from jstncarvalho/FixMissingBrackets_ZIP_DECODE_LENGTH
...
Fix missing brackets around encoding variable in ZIP_DECODE_LENGTH macro
2016-12-20 13:32:54 +01:00
antirez
af0284926c
Geo: fuzzy test inconsistency report fixed to show all points.
...
We need to report all the points added into the set, not just the ones
matching the Tcl distance algo.
2016-12-20 12:22:11 +01:00
antirez
29fbdde45f
Geo: fuzzy test inconsistency report fixed to show all points.
...
We need to report all the points added into the set, not just the ones
matching the Tcl distance algo.
2016-12-20 12:22:11 +01:00
antirez
0f72257049
Geo: fix GEOHASH return value for consistency.
...
The same thing observed in #3551 by gnethercutt also fixed for
GEOHASH as the original PR did.
2016-12-20 10:20:13 +01:00
antirez
db1e1e63ce
Geo: fix GEOHASH return value for consistency.
...
The same thing observed in #3551 by gnethercutt also fixed for
GEOHASH as the original PR did.
2016-12-20 10:20:13 +01:00
antirez
913070a9e8
Geo: fix edge case return values for uniformity.
...
There were two cases outlined in issue #3512 and PR #3551 where
the Geo API returned unexpected results: empty strings where NULL
replies were expected, or a single null reply where an array was
expected. This violates the Redis principle that Redis replies for
existing keys or elements should be indistinguishable.
This is technically an API breakage so will be merged only into 4.0 and
specified in the changelog in the list of breaking compatibilities, even
if it is not very likely that actual code will be affected, hopefully,
since with the past behavior basically there was to acconut for *both*
the possibilities, and the new behavior is always one of the two, but
in a consistent way.
2016-12-20 10:12:38 +01:00
antirez
ebab46b1fb
Geo: fix edge case return values for uniformity.
...
There were two cases outlined in issue #3512 and PR #3551 where
the Geo API returned unexpected results: empty strings where NULL
replies were expected, or a single null reply where an array was
expected. This violates the Redis principle that Redis replies for
existing keys or elements should be indistinguishable.
This is technically an API breakage so will be merged only into 4.0 and
specified in the changelog in the list of breaking compatibilities, even
if it is not very likely that actual code will be affected, hopefully,
since with the past behavior basically there was to acconut for *both*
the possibilities, and the new behavior is always one of the two, but
in a consistent way.
2016-12-20 10:12:38 +01:00
Justin Carvalho
7c64e88963
Fix missing brackets around encoding variable in ZIP_DECODE_LENGTH macro
2016-12-19 17:37:41 -05:00