xuchengxuan
3fc4bf07cc
Fixed comments of slowlog duration
2017-06-14 16:42:21 +08:00
xuchengxuan
44143324d0
Fixed comments of slowlog duration
2017-06-14 16:42:21 +08:00
Salvatore Sanfilippo
d3b32ca48d
Merge pull request #4034 from amallia/patch-1
...
Fixed comment in clusterMsg version field
2017-06-13 06:28:23 -07:00
Salvatore Sanfilippo
d48581ab72
Merge pull request #4034 from amallia/patch-1
...
Fixed comment in clusterMsg version field
2017-06-13 06:28:23 -07:00
Salvatore Sanfilippo
33035cad04
Merge pull request #4035 from amallia/patch-2
...
Removed duplicate 'sys/socket.h' include
2017-06-13 06:27:31 -07:00
Salvatore Sanfilippo
617941ccf9
Merge pull request #4035 from amallia/patch-2
...
Removed duplicate 'sys/socket.h' include
2017-06-13 06:27:31 -07:00
antirez
5877c02c51
Fix PERSIST expired key resuscitation issue #4048 .
2017-06-13 10:35:51 +02:00
antirez
8606449fe1
Fix PERSIST expired key resuscitation issue #4048 .
2017-06-13 10:35:51 +02:00
Antonio Mallia
2d1d57eb47
Removed duplicate 'sys/socket.h' include
2017-06-04 15:26:53 +01:00
Antonio Mallia
88423d5bfd
Removed duplicate 'sys/socket.h' include
2017-06-04 15:26:53 +01:00
Antonio Mallia
591dba8055
Fixed comment in clusterMsg version field
2017-06-04 15:09:05 +01:00
Antonio Mallia
eb83bd77be
Fixed comment in clusterMsg version field
2017-06-04 15:09:05 +01:00
Zachary Marquez
a3e53cf9bc
Prevent expirations and evictions while paused
...
Proposed fix to https://github.com/antirez/redis/issues/4027
2017-06-01 16:28:40 -05:00
Zachary Marquez
541e4de976
Prevent expirations and evictions while paused
...
Proposed fix to https://github.com/antirez/redis/issues/4027
2017-06-01 16:28:40 -05:00
antirez
e91b81c612
More informative -MISCONF error message.
2017-05-19 12:03:30 +02:00
antirez
b47078f14a
More informative -MISCONF error message.
2017-05-19 12:03:30 +02:00
antirez
e498d9ee3e
Collect fork() timing info only if fork succeeded.
2017-05-19 11:10:36 +02:00
antirez
f506064136
Collect fork() timing info only if fork succeeded.
2017-05-19 11:10:36 +02:00
antirez
78211aaaaf
redis-cli --bigkeys: show error when TYPE fails.
...
Close #3993 .
2017-05-15 11:22:28 +02:00
antirez
2e9c6cac74
redis-cli --bigkeys: show error when TYPE fails.
...
Close #3993 .
2017-05-15 11:22:28 +02:00
antirez
58f79e2ff4
Merge branch 'unstable' of github.com:/antirez/redis into unstable
2017-05-10 13:15:30 +02:00
antirez
6b2316b9aa
Merge branch 'unstable' of github.com:/antirez/redis into unstable
2017-05-10 13:15:30 +02:00
antirez
1f598fc2bb
Modules TSC: use atomic var for server.unixtime.
...
This avoids Helgrind complaining, but we are actually not using
atomicGet() to get the unixtime value for now: too many places where it
is used and given tha time_t is word-sized it should be safe in all the
archs we support as it is.
On the other hand, Helgrind, when Redis is compiled with "make helgrind"
in order to force the __sync macros, will detect the write in
updateCachedTime() as a read (because atomic functions are used) and
will not complain about races.
This commit also includes minor refactoring of mutex initializations and
a "helgrind" target in the Makefile.
2017-05-10 10:04:16 +02:00
antirez
e6ae9c9bab
Modules TSC: use atomic var for server.unixtime.
...
This avoids Helgrind complaining, but we are actually not using
atomicGet() to get the unixtime value for now: too many places where it
is used and given tha time_t is word-sized it should be safe in all the
archs we support as it is.
On the other hand, Helgrind, when Redis is compiled with "make helgrind"
in order to force the __sync macros, will detect the write in
updateCachedTime() as a read (because atomic functions are used) and
will not complain about races.
This commit also includes minor refactoring of mutex initializations and
a "helgrind" target in the Makefile.
2017-05-10 10:04:16 +02:00
antirez
de786186a5
atomicvar.h: show used API in INFO. Add macro to force __sync builtin.
...
The __sync builtin can be correctly detected by Helgrind so to force it
is useful for testing. The API in the INFO output can be useful for
debugging after problems are reported.
2017-05-10 09:33:49 +02:00
antirez
abbeead6fa
atomicvar.h: show used API in INFO. Add macro to force __sync builtin.
...
The __sync builtin can be correctly detected by Helgrind so to force it
is useful for testing. The API in the INFO output can be useful for
debugging after problems are reported.
2017-05-10 09:33:49 +02:00
Guy Benoish
89a9e5a9a2
Merge branch 'unstable' of https://github.com/antirez/redis into unstable
2017-05-09 18:42:32 +03:00
Guy Benoish
c71a77ad16
Merge branch 'unstable' of https://github.com/antirez/redis into unstable
2017-05-09 18:42:32 +03:00
antirez
6eb51bf1ec
zmalloc.c: remove thread safe mode, it's the default way.
2017-05-09 16:59:51 +02:00
antirez
6364bb1a79
zmalloc.c: remove thread safe mode, it's the default way.
2017-05-09 16:59:51 +02:00
antirez
9390c384b8
Modules TSC: Add mutex for server.lruclock.
...
Only useful for when no atomic builtins are available.
2017-05-09 16:32:49 +02:00
antirez
61eb08813b
Modules TSC: Add mutex for server.lruclock.
...
Only useful for when no atomic builtins are available.
2017-05-09 16:32:49 +02:00
antirez
ece658713b
Modules TSC: Improve inter-thread synchronization.
...
More work to do with server.unixtime and similar. Need to write Helgrind
suppression file in order to suppress the valse positives.
2017-05-09 11:57:09 +02:00
antirez
42948bc052
Modules TSC: Improve inter-thread synchronization.
...
More work to do with server.unixtime and similar. Need to write Helgrind
suppression file in order to suppress the valse positives.
2017-05-09 11:57:09 +02:00
antirez
2a51bac44e
Simplify atomicvar.h usage by having the mutex name implicit.
2017-05-04 17:01:00 +02:00
antirez
ac4a9384e9
Simplify atomicvar.h usage by having the mutex name implicit.
2017-05-04 17:01:00 +02:00
antirez
52bc74f221
Lazyfree: fix lazyfreeGetPendingObjectsCount() race reading counter.
2017-05-04 10:35:40 +02:00
antirez
71e9725dc7
Lazyfree: fix lazyfreeGetPendingObjectsCount() race reading counter.
2017-05-04 10:35:40 +02:00
antirez
7d9326b1f3
Modules TSC: HELLO.KEYS reply format fixed.
2017-05-03 23:43:49 +02:00
antirez
86274d062f
Modules TSC: HELLO.KEYS reply format fixed.
2017-05-03 23:43:49 +02:00
antirez
9b01b64430
Modules TSC: put the client in the pending write list.
2017-05-03 14:54:48 +02:00
antirez
98c48456e8
Modules TSC: put the client in the pending write list.
2017-05-03 14:54:48 +02:00
antirez
e67fb915eb
adlist: fix final list count in listJoin().
2017-05-03 14:54:14 +02:00
antirez
833ebe4ab9
adlist: fix final list count in listJoin().
2017-05-03 14:54:14 +02:00
antirez
79226cb9fa
adlist: fix listJoin() to handle empty lists.
2017-05-03 14:15:25 +02:00
antirez
8871307574
adlist: fix listJoin() to handle empty lists.
2017-05-03 14:15:25 +02:00
antirez
6798736909
Modules: remove unused var in example module.
2017-05-03 14:10:21 +02:00
antirez
b6e4ca1402
Modules: remove unused var in example module.
2017-05-03 14:10:21 +02:00
antirez
1ed2ff5570
Modules TSC: HELLO.KEYS example draft finished.
2017-05-03 14:08:12 +02:00
antirez
e89b3655b8
Modules TSC: HELLO.KEYS example draft finished.
2017-05-03 14:08:12 +02:00