antirez
3f1838d93a
Use comments to split aof.c into sections.
...
This makes the code more readable, it is still not the case to split the
file itself into three different files, but the logical separation
improves the readability especially since new commits are going to
introduce an additional section.
2012-05-21 16:50:05 +02:00
antirez
04c1bc9106
For coverage testing use exit() instead of _exit() when termiating saving children.
2012-04-07 12:11:23 +02:00
Premysl Hruby
f3fa6655c6
use server.unixtime instead of time(NULL) where possible (cluster.c not checked though)
2012-03-27 17:39:58 +02:00
antirez
6afb293b49
New INFO field aof_delayed_fsync introduced.
...
This new field counts all the times Redis is configured with AOF enabled and
fsync policy 'everysec', but the previous fsync performed by the
background thread was not able to complete within two seconds, forcing
Redis to perform a write against the AOF file while the fsync is still
in progress (likely a blocking operation).
2012-03-25 11:27:35 +02:00
antirez
696c28fcf9
Reclaim space from the client querybuf if needed.
2012-03-14 15:32:30 +01:00
antirez
656b852dc4
Added a top-function comment to rioWriteHashIteratorCursor() to better specify what the function does. Not immediately clear from the name.
2012-03-10 10:36:51 +01:00
antirez
afadac1728
Merge conflicts resolved.
2012-03-09 22:07:45 +01:00
antirez
dd46b715a9
lenght -> length
2012-01-24 15:33:15 +01:00
antirez
1caa425a7c
Implementation of the internals that make possible to terminate clients overcoming configured output buffer (soft and hard) limits.
2012-01-23 16:12:37 +01:00
antirez
b7a33b7322
Track the length of the client pending output buffers (still to transfer) in a new field in the client structure.
2012-01-17 12:23:25 +01:00
Pieter Noordhuis
ae204e5428
Encode small hashes with a ziplist
2012-01-02 22:14:10 -08:00
antirez
f23786e471
sligthly better AOF related logs
2011-12-21 17:12:23 +01:00
antirez
084521bbba
Log when the child rewriting the AOF is killed by stopAppendOnly()
2011-12-21 16:37:22 +01:00
antirez
4aa527ba09
some RDB server struct fields renamed.
2011-12-21 12:22:13 +01:00
antirez
0bb9c8b70d
more AOF server struct fields renamed.
2011-12-21 12:17:02 +01:00
antirez
9868316d3f
AOF fileds in the global server state, and define names, renamed with more consistent names. More work to do.
2011-12-21 11:58:42 +01:00
antirez
6bb4b565ff
AOF refactoring, now with three states: ON, OFF, WAIT_REWRITE.
2011-12-21 10:31:34 +01:00
antirez
122c7e5d92
startAppendOnly() fixed to set server.appendonly to 0 if the start failed.
2011-12-20 17:00:50 +01:00
antirez
3c3b943e8f
Fix: when aof_write_rewrite is true don't append on the AOF buffer but accumulate the differences for the rewrite.
2011-12-15 20:03:28 +01:00
antirez
55092fe167
AOF fixes in the context of replicaiton (when AOF is used by slave) and CONFIG SET appendonly yes/no.
2011-12-15 16:07:49 +01:00
antirez
1c49d4ba25
Hash type AOF rewrite using HMSET.
2011-12-13 11:10:51 +01:00
antirez
396a94dd5b
Sorted Set type AOF rewrite using variadic ZADD.
2011-12-13 11:10:46 +01:00
antirez
a5a2c839b1
Set type AOF rewrite using variadic SADD.
2011-12-13 11:10:41 +01:00
antirez
94c149eee0
List type AOF rewrite using variadic RPUSH for the linked list encoding.
2011-12-13 11:10:31 +01:00
antirez
1f763e4303
Lists AOF rewrite using variadic RPUSH (work in progress)
2011-12-13 11:10:21 +01:00
antirez
c93ee2bcad
Fixed issues with expire introduced with latest millisecond resolution feature. Many time_t were not converted to long long, and one time() call was not replaced with mstime().
2011-11-12 01:04:27 +01:00
antirez
bd19e43850
high resolution expires API modified to use separated commands. AOF transation to PEXPIREAT of all the expire-style commands fixed.
2011-11-10 17:52:02 +01:00
antirez
5cbf67f20f
use "EXPIREAT ... ms" form when rewriting the AOF
2011-11-09 17:20:14 +01:00
antirez
027876589d
Initial support for key expire times with millisecond resolution. RDB version is now 3, new opcoded added for high resolution times. Redis is still able to correctly load RDB version 2. Tests passing but still a work in progress. API to specify milliseconds expires still missing, but the precision of normal expires is now already improved and working.
2011-11-09 16:51:19 +01:00
antirez
d6c3b3004e
dict.c API names modified to be more coincise and consistent.
2011-11-08 17:07:55 +01:00
antirez
1aff85bddb
Clear the AOF rewrite scheduled flag once an AOF rewrite is triggered. Fix for issue #161 , probably fixing 159 as well.
2011-10-26 12:53:30 +02:00
antirez
7b2b598ff9
not used parameter for redisLog() removed. Error message grammar fixed.
...
Thanks to @ardsrk.
2011-10-08 10:59:04 +02:00
antirez
3ad12623d4
rioInitWithFile nad rioInitWithBuffer functions now take a rio structure pointer to avoid copying a structure to return value to the caller.
2011-09-22 16:00:40 +02:00
antirez
dbdf74ddfd
merge conflicts resolved
2011-09-22 15:15:26 +02:00
Salvatore Sanfilippo
46f20e7917
Merge pull request #74 from kmerenkov/issue_620
...
[issue 620] don't segfault if number of arguments is less than 1
2011-09-20 01:55:34 -07:00
antirez
9f50eaa47a
Fixed comment typo
2011-09-19 17:50:07 +02:00
antirez
d8c0b536b4
Emit a log message when AOF fsync is still in progress but we are forced to write from the main thread since two seconds already elapsed.
2011-09-19 16:52:13 +02:00
antirez
71d6796fd9
Merge remote-tracking branch 'origin/unstable' into bg-aof-2
2011-09-16 12:36:33 +02:00
antirez
5d02f830e6
postpone the AOF fsync if policy is everysec and there is a background fsync already going.
2011-09-16 12:35:12 +02:00
antirez
fa1876d48d
Fixed typo preventing compilation
2011-09-16 12:11:48 +02:00
Pieter Noordhuis
15fbeddda1
Fix AOF race that may duplicate commands
2011-09-16 11:12:31 +02:00
antirez
1e8f56bcef
Added aof_backgronud_fsync() function, and use it in the bacground rewrite done handler when the fsync policy is everysec.
2011-09-16 11:08:39 +02:00
antirez
1b5ba28d72
Use a different thread for every different type of background job
2011-09-15 18:21:16 +02:00
antirez
39c9e093fa
use bio.c instead of libeio for closing the AOF file in background. Some comment added and other minor changes.
2011-09-13 18:27:08 +02:00
Pieter Noordhuis
07679a36e2
Asynchronously close old file after BGREWRITEAOF
2011-09-13 18:17:06 +02:00
Pieter Noordhuis
085242e62b
Speed up protocol synthesis for AOF
2011-09-13 12:23:50 +02:00
Pieter Noordhuis
c73a656652
Re-use AOF buffer when it is small enough
2011-09-13 12:22:54 +02:00
Pieter Noordhuis
6f3256c7d3
Fix indent
2011-09-13 12:22:39 +02:00
Pieter Noordhuis
406024e23f
Avoid unnecessary calls to time(3)
2011-09-13 12:18:55 +02:00
Konstantin Merenkov
2a3262572c
[issue 620] don't segfault if number of arguments is less than 1
2011-08-02 17:05:04 +04:00