107 Commits

Author SHA1 Message Date
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
antirez
8ba7e850f3 Partial fix for a problem with AOF and BRPOP. We have at least a single evidence of an AOF that ended with a BRPOP call against an empty list, causing later issues at run time. Now the problem is detected while loading the AOF at startup, even if it is still to understand how the corrupted AOF was generated. 2011-06-29 16:11:23 +02:00
antirez
59f09141f5 diskstore removed 2011-06-25 12:22:03 +02:00
antirez
d537a7b296 Use a safe iterator while saving the DB, since the getExpire() function will access the iterating dictionary. 2011-06-17 15:41:22 +02:00
antirez
ddbe7929fc different message on BGREWRITEAOF when it is just scheduled and not started. 2011-06-10 18:35:16 +02:00
antirez
bf296eb12c correctly set AOF base size field in server structure 2011-06-10 14:56:45 +02:00
antirez
0798b88e34 automatic AOF rewrite first implementation. Still to be tested. 2011-06-10 12:39:23 +02:00
antirez
00b2ab2c8d INFO now contains the time (in usecs) needed to fork() in order to persist. The info is available in the stats section of INFO. 2011-05-29 15:17:29 +02:00
Pieter Noordhuis
a67b0922d7 Use rio.h functions in aof.c 2011-05-14 12:36:22 +02:00
antirez
6d502e71ce Useless statement removed 2011-05-10 10:07:04 +02:00
Pieter Noordhuis
ded49d96bb Use correct argc/argv for cleanup when loading AOF 2011-04-22 09:44:06 +02:00
Pieter Noordhuis
a6ca3077d4 Test for ENCODING_SKIPLIST instead of ENCODING_RAW 2011-04-06 16:17:07 +02:00
Pieter Noordhuis
3746a4135a Fix DEBUG DIGEST, SORT and AOF rewrite 2011-03-14 13:30:06 +01:00
antirez
a1907821b9 AOF file descriptor leak fixed 2011-03-04 16:13:54 +01:00
antirez
f261a5d500 test adapted to run with diskstore, and a few bugs fixed 2011-01-09 18:25:34 +01:00
antirez
85fa300825 more work towards diskstore bgsave 2011-01-07 19:31:42 +01:00
antirez
e6fdae80f8 source reshaped a bit to play well with a bgsaving thread, still work to do, does not compile. 2011-01-07 18:15:14 +01:00
antirez
a43d96c4c8 a lot of code reworked/removed to implement object caching 2010-12-28 18:06:40 +01:00
antirez
2ccb7c9f4f non blocking loading of the DB / AOF with informations and ETA in INFO output 2010-11-08 11:52:03 +01:00
antirez
a9c740ac44 Merge remote branch 'pietern/unixsocket' 2010-11-02 23:47:52 +01:00
antirez
dfd6eaf8d1 Revert "Now maxmemory, VM, and everything else uses the fast RSS memory used estimation instead of raw memory reported by zmalloc(). This means that setting maxmemory to 2GB will really have the effect of using up to 2GB of memory."
This reverts commit a9d4d3c8599b359e3e35fee47e5447259b469052.
2010-11-02 12:09:59 +01:00
antirez
a9d4d3c859 Now maxmemory, VM, and everything else uses the fast RSS memory used estimation instead of raw memory reported by zmalloc(). This means that setting maxmemory to 2GB will really have the effect of using up to 2GB of memory. 2010-11-02 11:50:55 +01:00
antirez
f6b6fda9e4 merge conflict resolved 2010-10-28 22:59:47 +02:00
antirez
64a61269df more generally usable i/o functions moved to syncio.c 2010-10-25 10:53:28 +02:00
Pieter Noordhuis
000b46faac Convert objects in the command procs instead of the protocol code 2010-10-17 17:21:41 +02:00
Pieter Noordhuis
4158de4e63 Merge master with resolved conflict in src/redis-cli.c 2010-10-13 18:55:46 +02:00
antirez
bbaffda4bb Merge remote branch 'pietern/networking-perf' 2010-09-16 11:38:40 +02:00
antirez
2759de25b0 fixed typo in the latest commit 2010-09-14 15:18:18 +02:00
antirez
977c3ce325 Advertise the existence of redis-check dump --fix when logging an error about corrupted AOF file 2010-09-14 15:09:37 +02:00
Pieter Noordhuis
3ab203762f Use specialized function to add status and error replies 2010-09-02 23:33:06 +02:00
Pieter Noordhuis
2403fc9fde Intialize bufpos in the fake client 2010-09-02 19:52:04 +02:00
Pieter Noordhuis
57b0738011 Don't build a reply when replaying the AOF 2010-08-30 16:51:39 +02:00
antirez
23c64fe50d translated a few long logn into int64_t for correctness and to avoid compilation warnings as well 2010-08-26 18:11:26 +02:00
Pieter Noordhuis
aaada3f962 Merge branch 'master' into intset-split
Conflicts:
	src/Makefile
	src/t_set.c
2010-08-20 12:40:55 +02:00