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
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
antirez
d95592b116
CONFIG REWRITE: support for dir and slaveof.
2013-05-13 11:26:49 +02:00
antirez
9c26dfdc04
CONFIG REWRITE: support for save and syslog-facility.
2013-05-13 11:11:45 +02:00
antirez
2bc31e55ee
CONFIG REWRITE: support for save and syslog-facility.
2013-05-13 11:11:45 +02:00
antirez
d193366479
CONFIG REWRITE: Initial support code and design.
2013-05-13 11:11:12 +02:00
antirez
7e049fafd3
CONFIG REWRITE: Initial support code and design.
2013-05-13 11:11:12 +02:00
antirez
792459e84a
Obtain absoute path of configuration file, expose it in INFO.
2013-05-09 16:57:59 +02:00
antirez
5947f170f9
Obtain absoute path of configuration file, expose it in INFO.
2013-05-09 16:57:59 +02:00
antirez
1590ba7d59
Version bumped to 2.9.10
2013-05-08 15:24:40 +02:00