antirez
dd937030f0
Replication: don't even queue replies to master commands.
...
When master send commands, there is no need for the slave to reply.
Redis used to queue the reply in the output buffer and discard the reply
later, this is a waste of work and it is not clear why it was this way
(I sincerely don't remember).
This commit changes it in order to don't queue the reply at all.
All tests passing.
2013-05-24 18:58:57 +02:00
antirez
f06f9dacb7
Top comment for prepareClientToWrite() clarified.
...
We don't write the output buffer to the client socket for slaves only if
the slave is not online.
2013-05-24 18:41:43 +02:00
antirez
c853239a5e
Top comment for prepareClientToWrite() clarified.
...
We don't write the output buffer to the client socket for slaves only if
the slave is not online.
2013-05-24 18:41:43 +02:00
ioddly
d56c9e48ff
Try to report source of bad Lua API calls
2013-05-22 18:17:58 -05:00
ioddly
c3229c33b1
Try to report source of bad Lua API calls
2013-05-22 18:17:58 -05:00
antirez
53890a2973
Don't stop reading redis.conf if line has no args.
...
Should be "continue" and was "return".
This fixes issue #1110
2013-05-18 16:21:52 +02:00
antirez
5d0f408d42
Don't stop reading redis.conf if line has no args.
...
Should be "continue" and was "return".
This fixes issue #1110
2013-05-18 16:21:52 +02:00
YAMAMOTO Takashi
2e829fc15d
don't assume time_t == long
...
time_t is always 64bit on recent versions of NetBSD.
2013-05-17 17:22:39 +09:00
YAMAMOTO Takashi
9fcead7a59
don't assume time_t == long
...
time_t is always 64bit on recent versions of NetBSD.
2013-05-17 17:22:39 +09:00
YAMAMOTO Takashi
321c1a5905
use nanosleep instead of usleep
...
SUSv3 says that:
The useconds argument shall be less than one million. If the value of
useconds is 0, then the call has no effect.
and actually NetBSD's implementation rejects such a value with EINVAL.
use nanosleep which has no such a limitation instead.
2013-05-17 17:21:28 +09:00
YAMAMOTO Takashi
ae82867664
use nanosleep instead of usleep
...
SUSv3 says that:
The useconds argument shall be less than one million. If the value of
useconds is 0, then the call has no effect.
and actually NetBSD's implementation rejects such a value with EINVAL.
use nanosleep which has no such a limitation instead.
2013-05-17 17:21:28 +09:00
YAMAMOTO Takashi
ed23c6ff59
rename popcount to popcount_binary to avoid a conflict with NetBSD libc
...
NetBSD-current's libc has a function named popcount.
hiding these extensions using feature macros is not possible because
redis uses other extensions covered by the same feature macro.
eg. inet_aton
2013-05-17 17:21:28 +09:00
YAMAMOTO Takashi
b2dd0849ce
rename popcount to popcount_binary to avoid a conflict with NetBSD libc
...
NetBSD-current's libc has a function named popcount.
hiding these extensions using feature macros is not possible because
redis uses other extensions covered by the same feature macro.
eg. inet_aton
2013-05-17 17:21:28 +09:00
YAMAMOTO Takashi
f08d4ed811
don't define _XOPEN_SOURCE for NetBSD
...
on NetBSD, defining _XOPEN_SOURCE hides extensions
like inet_aton, strcasecmp, etc.
2013-05-17 17:19:02 +09:00
YAMAMOTO Takashi
0a20ad40de
don't define _XOPEN_SOURCE for NetBSD
...
on NetBSD, defining _XOPEN_SOURCE hides extensions
like inet_aton, strcasecmp, etc.
2013-05-17 17:19:02 +09:00
antirez
5049902df5
Merge branch 'config-rewrite' into unstable
2013-05-15 11:58:21 +02:00
antirez
92f18d04a0
Merge branch 'config-rewrite' into unstable
2013-05-15 11:58:21 +02:00
antirez
2dd77ca691
Use memtoll() when parsing the backlog-size option.
2013-05-15 11:55:14 +02:00
antirez
78167807be
Use memtoll() when parsing the backlog-size option.
2013-05-15 11:55:14 +02:00
antirez
55f9928677
CONFIG REWRITE: backlog size is a bytes option.
2013-05-15 11:39:29 +02:00
antirez
25f2be6267
CONFIG REWRITE: backlog size is a bytes option.
2013-05-15 11:39:29 +02:00
antirez
856fef5d34
CONFIG REWRITE: bindaddr -> bind.
2013-05-15 11:38:43 +02:00
antirez
cd48e4fc40
CONFIG REWRITE: bindaddr -> bind.
2013-05-15 11:38:43 +02:00
antirez
40ef57bd89
CONFIG REWRITE: when rewriting amount of bytes use GB, MB, KB if possible.
2013-05-15 11:33:02 +02:00
antirez
8a44e6c490
CONFIG REWRITE: when rewriting amount of bytes use GB, MB, KB if possible.
2013-05-15 11:33:02 +02:00
antirez
e5bd70d9f5
CONFIG REWRITE: correctly escape the notify-keyspace-events option.
2013-05-15 11:15:31 +02:00
antirez
c590e18d15
CONFIG REWRITE: correctly escape the notify-keyspace-events option.
2013-05-15 11:15:31 +02:00
antirez
a5bbd0b5cc
CONFIG REWRITE: "active-rehashing" -> "activerehashing".
2013-05-15 11:09:19 +02:00
antirez
328843849f
CONFIG REWRITE: "active-rehashing" -> "activerehashing".
2013-05-15 11:09:19 +02:00
antirez
baec7c4443
CONFIG REWRITE: fixed typo in AOF fsync policy.
2013-05-15 11:06:56 +02:00
antirez
402a0f1ca0
CONFIG REWRITE: fixed typo in AOF fsync policy.
2013-05-15 11:06:56 +02:00
antirez
9840f28db4
CONFIG REWRITE: repl-disable-tcp-nodelay is a boolean option.
2013-05-15 11:04:53 +02:00
antirez
72e980231c
CONFIG REWRITE: repl-disable-tcp-nodelay is a boolean option.
2013-05-15 11:04:53 +02:00
antirez
bde71cbd48
Test default config modified to set logfile to empty string.
...
Required because of recent changes in the way logfile is set to standard
output.
2013-05-15 10:19:14 +02:00
antirez
86a6aad984
Test default config modified to set logfile to empty string.
...
Required because of recent changes in the way logfile is set to standard
output.
2013-05-15 10:19:14 +02:00
antirez
cc475c9fed
Added a define for most configuration defaults.
...
Also the logfile option was modified to always have an explicit value
and to log to stdout when an empty string is used as log file.
Previously there was special handling of the string "stdout" that set
the logfile to NULL, this always required some special handling.
2013-05-15 10:12:29 +02:00
antirez
310dbba01c
Added a define for most configuration defaults.
...
Also the logfile option was modified to always have an explicit value
and to log to stdout when an empty string is used as log file.
Previously there was special handling of the string "stdout" that set
the logfile to NULL, this always required some special handling.
2013-05-15 10:12:29 +02:00
antirez
743429956f
CONFIG REWRITE: Use sane perms when creating redis.conf from scratch.
2013-05-14 12:45:04 +02:00
antirez
9e74d216e1
CONFIG REWRITE: Use sane perms when creating redis.conf from scratch.
2013-05-14 12:45:04 +02:00
antirez
7ff7f14de7
CONFIG REWRITE: actually rewrite the config file, atomically.
2013-05-14 12:32:25 +02:00
antirez
e252045454
CONFIG REWRITE: actually rewrite the config file, atomically.
2013-05-14 12:32:25 +02:00
antirez
40949481f9
redis-cli: help.h updated.
2013-05-14 11:23:16 +02:00
antirez
25e049cc68
redis-cli: help.h updated.
2013-05-14 11:23:16 +02:00
antirez
e213123474
CONFIG REWRITE: remove orphaned lines.
2013-05-14 11:17:18 +02:00
antirez
78f94d90eb
CONFIG REWRITE: remove orphaned lines.
2013-05-14 11:17:18 +02:00
antirez
6c8e735585
CONFIG REWRITE: strip multiple empty lines.
2013-05-14 10:22:55 +02:00
antirez
ee721f1e5c
CONFIG REWRITE: strip multiple empty lines.
2013-05-14 10:22:55 +02:00
antirez
df802fd3a1
CONFIG REWRITE: support for client-output-buffer-limit.
2013-05-13 18:34:18 +02:00
antirez
c184f36d21
CONFIG REWRITE: support for client-output-buffer-limit.
2013-05-13 18:34:18 +02:00
antirez
b0b49c4496
CONFIG REWRITE: support for dir and slaveof.
2013-05-13 11:26:49 +02:00