antirez
b3d03d79d6
Utils: added function to get radix 10 string length of signed integer.
2015-02-27 15:22:10 +01:00
antirez
c95507881a
Utils: added function to get radix 10 string length of signed integer.
2015-02-27 15:22:10 +01:00
antirez
e726eca8e2
server.current_client fix and minor refactoring.
...
Thanks to @codeslinger (Toby DiPasquale) for identifying the issue.
Related to issue #2409 .
2015-02-27 14:17:46 +01:00
antirez
7e6b4ea67b
server.current_client fix and minor refactoring.
...
Thanks to @codeslinger (Toby DiPasquale) for identifying the issue.
Related to issue #2409 .
2015-02-27 14:17:46 +01:00
antirez
7e11b8bb05
Improvements to PR #2425
...
1. Remove useless "cs" initialization.
2. Add a "select" var to capture a condition checked multiple times.
3. Avoid duplication of the same if (!copy) conditional.
4. Don't increment dirty if copy is given (no deletion is performed),
otherwise we propagate MIGRATE when not needed.
2015-02-26 10:27:56 +01:00
antirez
832b0c7cce
Improvements to PR #2425
...
1. Remove useless "cs" initialization.
2. Add a "select" var to capture a condition checked multiple times.
3. Avoid duplication of the same if (!copy) conditional.
4. Don't increment dirty if copy is given (no deletion is performed),
otherwise we propagate MIGRATE when not needed.
2015-02-26 10:27:56 +01:00
Tommy Wang
e06d62c2aa
Add last_dbid to migrateCachedSocket to avoid redundant SELECT
...
Avoid redundant SELECT calls when continuously migrating keys to
the same dbid within a target Redis instance.
2015-02-26 10:18:43 +01:00
Tommy Wang
7fda935ad3
Add last_dbid to migrateCachedSocket to avoid redundant SELECT
...
Avoid redundant SELECT calls when continuously migrating keys to
the same dbid within a target Redis instance.
2015-02-26 10:18:43 +01:00
antirez
1655e0de41
utils/hashtable/rehashing.c test updated to use new API.
2015-02-25 13:02:04 +01:00
antirez
cc0d339bd1
utils/hashtable/rehashing.c test updated to use new API.
2015-02-25 13:02:04 +01:00
Salvatore Sanfilippo
f8afd6746f
Merge pull request #2405 from sisirkoppaka/unstable
...
rehashing.c: Fix compile error originating from SPOP rewrite
2015-02-25 12:52:23 +01:00
Salvatore Sanfilippo
126462ee36
Merge pull request #2405 from sisirkoppaka/unstable
...
rehashing.c: Fix compile error originating from SPOP rewrite
2015-02-25 12:52:23 +01:00
antirez
d5efd018cf
Test: fixes a few tests after basic unit refactoring.
2015-02-25 10:37:52 +01:00
antirez
74354ceef5
Test: fixes a few tests after basic unit refactoring.
2015-02-25 10:37:52 +01:00
antirez
84e1096f80
Cast sentlen to int before comparison wit bufpos.
...
This is safe since bufpos is small, inside the range of the local
client buffer.
2015-02-25 10:33:37 +01:00
antirez
27c30b0e84
Cast sentlen to int before comparison wit bufpos.
...
This is safe since bufpos is small, inside the range of the local
client buffer.
2015-02-25 10:33:37 +01:00
antirez
5b562e64a0
Test: split basic unit into string, incr, keyspace units.
2015-02-25 10:33:29 +01:00
antirez
954151f62b
Test: split basic unit into string, incr, keyspace units.
2015-02-25 10:33:29 +01:00
Salvatore Sanfilippo
31e8dbbfdc
Merge pull request #2050 from mattsta/bitops-no-overalloc
...
Bitops: Stop overallocating storage space on set
2015-02-25 10:18:07 +01:00
Salvatore Sanfilippo
9454f7b3db
Merge pull request #2050 from mattsta/bitops-no-overalloc
...
Bitops: Stop overallocating storage space on set
2015-02-25 10:18:07 +01:00
Salvatore Sanfilippo
b0eb128ac7
Merge pull request #2054 from mattsta/fix-set-sentinel-quorum
...
Sentinel: Add initial quorum bounds check
2015-02-25 10:09:40 +01:00
Salvatore Sanfilippo
e00cb78f67
Merge pull request #2054 from mattsta/fix-set-sentinel-quorum
...
Sentinel: Add initial quorum bounds check
2015-02-25 10:09:40 +01:00
Matt Stancliff
92f3e19db7
Fix types broken by previous type cleanup
...
Revert some size_t back to off_t
Set reply_bytes needs to 64 bits everywhere
Revert bufpos to int since it's a max of 16k into buf[]
2015-02-24 17:39:59 +01:00
Matt Stancliff
47ab570441
Fix types broken by previous type cleanup
...
Revert some size_t back to off_t
Set reply_bytes needs to 64 bits everywhere
Revert bufpos to int since it's a max of 16k into buf[]
2015-02-24 17:39:59 +01:00
Salvatore Sanfilippo
de4eacd132
Merge pull request #2301 from mattsta/fix/lengths
...
Improve type correctness
2015-02-24 17:22:53 +01:00
Salvatore Sanfilippo
d83c810265
Merge pull request #2301 from mattsta/fix/lengths
...
Improve type correctness
2015-02-24 17:22:53 +01:00
Salvatore Sanfilippo
b2ffd67c91
Merge pull request #1966 from mattsta/fix-sentinel-info
...
Sentinel: Improve INFO command behavior
2015-02-24 17:20:09 +01:00
Salvatore Sanfilippo
46bd13b806
Merge pull request #1966 from mattsta/fix-sentinel-info
...
Sentinel: Improve INFO command behavior
2015-02-24 17:20:09 +01:00
Salvatore Sanfilippo
813c1d300a
Merge pull request #2273 from mattsta/improve/consistency/INFO/memory
...
Improve consistency of INFO MEMORY
2015-02-24 17:19:17 +01:00
Salvatore Sanfilippo
3689a0582b
Merge pull request #2273 from mattsta/improve/consistency/INFO/memory
...
Improve consistency of INFO MEMORY
2015-02-24 17:19:17 +01:00
Salvatore Sanfilippo
37238841e5
Merge pull request #2401 from mattsta/fix/quicklist/pop
...
Fix quicklist Pop()
2015-02-24 17:13:39 +01:00
Salvatore Sanfilippo
5ff00ac8c1
Merge pull request #2401 from mattsta/fix/quicklist/pop
...
Fix quicklist Pop()
2015-02-24 17:13:39 +01:00
antirez
fa8fcff3f0
Change RENAME behavior when src and dst keys are the same.
...
Fixes issue #2392 .
2015-02-23 11:24:24 +01:00
antirez
fc365a3a00
Change RENAME behavior when src and dst keys are the same.
...
Fixes issue #2392 .
2015-02-23 11:24:24 +01:00
Jason Roth
6cc1d51719
added a new hvstrlen command
...
the hvstrlen command returns the length of a hash field value
2015-02-21 15:01:18 +00:00
Jason Roth
db9461e466
added a new hvstrlen command
...
the hvstrlen command returns the length of a hash field value
2015-02-21 15:01:18 +00:00
antirez
5977a25a94
Give obvious instructions on how to bind all interfaces.
2015-02-19 22:47:32 +01:00
antirez
0aa5acc8f3
Give obvious instructions on how to bind all interfaces.
2015-02-19 22:47:32 +01:00
antirez
487ab5d55b
Example redis.conf binds just to 127.0.0.1.
...
It's hard to pick a good approach here. A few arguments:
1) There are many exposed instances on the internet.
2) Changing the default when "bind" is not given is very dangerous,
after an upgrade the server changes a fundamental behavior.
3) Usually Redis, when used in a proper way, will be protected *and*
accessed often from other computers, so this new default is likely
not what most people want.
4) However if users end with this default, they are using the example
redis.conf: likely they are reading what is inside, and they'll see
the warning.
2015-02-19 22:42:31 +01:00
antirez
1024664247
Example redis.conf binds just to 127.0.0.1.
...
It's hard to pick a good approach here. A few arguments:
1) There are many exposed instances on the internet.
2) Changing the default when "bind" is not given is very dangerous,
after an upgrade the server changes a fundamental behavior.
3) Usually Redis, when used in a proper way, will be protected *and*
accessed often from other computers, so this new default is likely
not what most people want.
4) However if users end with this default, they are using the example
redis.conf: likely they are reading what is inside, and they'll see
the warning.
2015-02-19 22:42:31 +01:00
Sisir Koppaka
aa9b7743eb
rehashing.c: Fix compile error originating from SPOP rewrite
2015-02-18 08:16:41 -05:00
Sisir Koppaka
acb933a747
rehashing.c: Fix compile error originating from SPOP rewrite
2015-02-18 08:16:41 -05:00
Matt Stancliff
58061fe49b
Fix quicklist tests for Pop()
...
Now the tests actually compare return values instead of just
verifying _something_ got returned.
2015-02-17 11:33:08 -05:00
Matt Stancliff
552e5908bb
Fix quicklist tests for Pop()
...
Now the tests actually compare return values instead of just
verifying _something_ got returned.
2015-02-17 11:33:08 -05:00
John Doe
62a6895054
Fix quicklist Pop() result
...
Closes #2398
2015-02-17 11:31:08 -05:00
John Doe
395e11255c
Fix quicklist Pop() result
...
Closes #2398
2015-02-17 11:31:08 -05:00
antirez
ae51d42ba8
Merge branch 'unstable' of github.com:/antirez/redis into unstable
2015-02-14 17:19:37 +01:00
antirez
cfe5eaaed6
Merge branch 'unstable' of github.com:/antirez/redis into unstable
2015-02-14 17:19:37 +01:00
antirez
7009630914
Version bumped to 3.1.999 (3.2 alpha versions).
2015-02-14 17:19:17 +01:00
antirez
41a1fb8186
Version bumped to 3.1.999 (3.2 alpha versions).
2015-02-14 17:19:17 +01:00