Commit Graph

3466 Commits

Author SHA1 Message Date
5f54a5e615 Fix AOF race that may duplicate commands 2011-09-16 11:12:31 +02:00
4b77700a33 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
96674b6d95 Fixed a bug in the average latency metering of redis-cli --latency 2011-09-15 19:33:24 +02:00
43071993e1 Implemented --latency in redis-cli 2011-09-15 19:28:00 +02:00
9fc1e1b1d4 REDIS_BIO_AOF_FSYNC implemented 2011-09-15 18:25:53 +02:00
b39a4d0b39 fixed a problem in bioOlderJobType() when there are no jobs of the specified type. Now the function returns 0 when this happens. 2011-09-15 18:23:58 +02:00
fbb23ce496 some more comment about bio.c design 2011-09-15 18:23:11 +02:00
1317b7c233 Remove backgroud jobs from the queue only when the processing was completed, and not just started. 2011-09-15 18:21:27 +02:00
50be9b97bc Use a different thread for every different type of background job 2011-09-15 18:21:16 +02:00
91de5421b2 Better comments for bioWaitPendingJobsLE 2011-09-15 18:21:02 +02:00
fde4e4c428 Background I/O library enhanced so that the main thread can query for the number of pending jobs of the specified type. 2011-09-15 18:20:53 +02:00
7feb90fa37 enable zmalloc thread safety support now that we have the bio.c background thread. 2011-09-14 19:09:48 +02:00
7cfeb8cccf Optimize LRANGE to scan the list starting from the head or the tail in order to traverse the minimal number of elements. Thanks to Didier Spezia for noticing the problem and providing a patch. 2011-09-14 15:10:28 +02:00
6468a6faad Don't replicate/AOF SAVE 2011-09-14 13:09:25 +02:00
986630afad 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
b454056d94 Asynchronously close old file after BGREWRITEAOF 2011-09-13 18:17:06 +02:00
b1c892f3f6 test background close operation removed 2011-09-13 16:57:18 +02:00
d47ded66ce make bio_list static as well 2011-09-13 16:56:43 +02:00
b147cb9e1a debug message removed 2011-09-13 16:53:33 +02:00
b7c739b0dd use pthread_cond_signal() to make sure the background thread will process the job. 2011-09-13 16:21:12 +02:00
8ea2dfd75c typo fixed in bio.c 2011-09-13 16:19:37 +02:00
f67e338d5c Removed no longer useful fields in the redis server structure 2011-09-13 16:17:45 +02:00
8f61a72fa8 add background jobs initialization to Redis main init function 2011-09-13 16:10:26 +02:00
f81a5f54d8 bio.c typos fixes to make it compile 2011-09-13 16:09:06 +02:00
02925dd96e bio.o added to redis-server objects 2011-09-13 15:59:48 +02:00
d1ec6c8b22 Speed up protocol synthesis for AOF 2011-09-13 12:23:50 +02:00
f990782f4d Re-use AOF buffer when it is small enough 2011-09-13 12:22:54 +02:00
a57225c2cf Fix indent 2011-09-13 12:22:39 +02:00
4f06867afe added a newline for code readability 2011-09-13 12:21:54 +02:00
297322481d Avoid unnecessary calls to time(3) 2011-09-13 12:18:55 +02:00
3bc89500d2 Remove the write handler only if there are no longer objects in the output queue AND if the static buffer is empty. This bug was the cause of a possible server-stop-responding-to-client bug under some specific work load. Thanks to Pieter Noordhuis for spotting and fixing it. 2011-09-12 11:06:28 +02:00
48082cc044 fixed typos in the comments of rpoplpushHandlePush() 2011-09-12 10:04:23 +02:00
c47d152c8d Fix crash when chaining brpoplpush with other blocking commands. 2011-09-07 19:08:48 +02:00
ef9444e0d2 Fixed compilation on Mac/PPC
Applied patch from Issue 119 provided by 
pahowes@gmail.com
2011-09-01 22:16:20 +04:00
c74b7c7730 Corrected typo in documentation for R_Zero, R_PosInf, R_NegInf, R_Nan; 2011-08-26 21:40:18 +03:00
11aaf52313 Auto rewrite integer overflow fixed. Thanks to Gaurav for finding it (see issue 602 on google code), and Pieter Noordhuis for tracing it. 2011-08-09 11:46:18 +02:00
be6f639564 [issue 620] don't segfault if number of arguments is less than 1 2011-08-02 17:05:04 +04:00
64f201c2aa Fix crash when pipelining several blocking commands. 2011-07-28 13:50:44 +02:00
bb831c313c Fix adding bulk reply when getcwd fails 2011-07-27 16:22:28 +02:00
4d6bf65c42 Wait for Lua to be built before linking redis-server 2011-07-27 14:47:02 +02:00
2d7162bb1d HDEL: Abort deleting fields when hash is removed 2011-07-27 12:29:40 +02:00
80e87a461a Close the listening sockets. Apparently this allows faster restarts. 2011-07-22 12:11:40 +02:00
adae85cdae prepareForShutdown() fixed for correctness regarding what to do with AOF and RDB persistence on exit. 2011-07-22 11:52:21 +02:00
f790bd028c Added a 'runtest' script that is responsible to check if Tcl is available and run the test. This is invoked from Makefile as well. 2011-07-15 17:20:57 +02:00
319bb48c01 top level Makefile now just a proxy. Doing make clean inside src now does a full clean including deps, not just Redis source. Thanks to Pieter for the top level Makefile proxy trick. 2011-07-13 19:15:22 +02:00
4dd444bb4a Replicate EVALSHA as EVAL taking a dictionary of sha1 -> script source code. 2011-07-13 15:38:03 +02:00
70ecddc9f4 scripting.txt file removed, content merged into the TODO file 2011-07-13 12:04:02 +02:00
331bf3292f when building redis-server use LINK and not CC as prefix in the output 2011-07-12 12:58:32 +02:00
5f54619494 Fix for a typo left after merging. 2011-07-12 12:43:05 +02:00
0681c5ad84 master branch merged into scripting. 2011-07-12 12:39:16 +02:00