2086 Commits

Author SHA1 Message Date
antirez
2dab3fdc64 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
antirez
22538cdf7c Don't replicate/AOF SAVE 2011-09-14 13:09:25 +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
antirez
77f6889356 test background close operation removed 2011-09-13 16:57:18 +02:00
antirez
22f1abd1f0 make bio_list static as well 2011-09-13 16:56:43 +02:00
antirez
a9f573488e debug message removed 2011-09-13 16:53:33 +02:00
antirez
f8a6b4bd02 use pthread_cond_signal() to make sure the background thread will process the job. 2011-09-13 16:21:12 +02:00
antirez
9c24b5fb6b typo fixed in bio.c 2011-09-13 16:19:37 +02:00
antirez
b4ea9dc894 Removed no longer useful fields in the redis server structure 2011-09-13 16:17:45 +02:00
antirez
1e8ec39fa8 add background jobs initialization to Redis main init function 2011-09-13 16:10:26 +02:00
antirez
962cfce8b7 bio.c typos fixes to make it compile 2011-09-13 16:09:06 +02:00
antirez
0f68818d30 bio.o added to redis-server objects 2011-09-13 15:59:48 +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
antirez
3bfc640273 added a newline for code readability 2011-09-13 12:21:54 +02:00
Pieter Noordhuis
406024e23f Avoid unnecessary calls to time(3) 2011-09-13 12:18:55 +02:00
antirez
0d57e6afc1 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
antirez
e9dee96c29 regression test for bug 593 added 2011-09-12 10:53:49 +02:00
antirez
1912b1fd64 fixed typos in the comments of rpoplpushHandlePush() 2011-09-12 10:04:23 +02:00
Hampus Wessman
5c0db2df35 Fix crash when chaining brpoplpush with other blocking commands. 2011-09-07 19:08:48 +02:00
Konstantin Tokarev
d4f4db7cd6 Fixed compilation on Mac/PPC
Applied patch from Issue 119 provided by 
pahowes@gmail.com
2011-09-01 22:16:20 +04:00
vambo
5068f417d1 Corrected typo in documentation for R_Zero, R_PosInf, R_NegInf, R_Nan; 2011-08-26 21:40:18 +03:00
Poincare
8ff878bfee Added note about Tcl 2011-08-25 07:35:33 -03:00
antirez
2c1fecbce2 Merge remote-tracking branch 'origin/unstable' into unstable 2011-08-09 11:46:21 +02:00
antirez
31984e11f7 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
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
b2c7f001c1 Merge remote-tracking branch 'origin/unstable' into unstable 2011-07-28 14:40:47 +02:00
antirez
a045c49433 Regression for a crash with blocking ops and pipelining 2011-07-28 14:40:06 +02:00
Hampus Wessman
e558915223 Fix crash when pipelining several blocking commands. 2011-07-28 13:50:44 +02:00
antirez
95c94d7249 Merge remote branch 'origin/unstable' into unstable 2011-07-28 12:33:17 +02:00
antirez
e7c4b3e835 Maxmemory test 2011-07-28 12:32:52 +02:00
antirez
6a5ba0be41 fixed assert proc on Redis test 2011-07-28 12:31:44 +02:00
antirez
21136587b9 TODO updated 2011-07-27 16:39:03 +02:00
Pieter Noordhuis
962ab10f51 Fix adding bulk reply when getcwd fails 2011-07-27 16:22:28 +02:00
Pieter Noordhuis
4c83707648 Wait for Lua to be built before linking redis-server 2011-07-27 14:47:02 +02:00
Pieter Noordhuis
49fd303a6b HDEL: Abort deleting fields when hash is removed 2011-07-27 12:29:40 +02:00
Bruce Mitchener
76d102dc3b Spelling fixes. 2011-07-26 10:19:02 +07:00
antirez
bc42d57989 Close the listening sockets. Apparently this allows faster restarts. 2011-07-22 12:11:40 +02:00
antirez
433080abda prepareForShutdown() fixed for correctness regarding what to do with AOF and RDB persistence on exit. 2011-07-22 11:52:21 +02:00
antirez
c18bc7fce6 make a scripting test more valgrind friendly 2011-07-15 18:28:24 +02:00
antirez
7be726880e test that EVALSHA is replicated as EVAL 2011-07-15 17:41:40 +02:00
antirez
c386123f1e 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
antirez
0570fc34c9 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
antirez
4c1d5f3a75 Merge branch 'unstable' of github.com:antirez/redis into unstable 2011-07-13 15:38:33 +02:00
antirez
3aa9917e6e Replicate EVALSHA as EVAL taking a dictionary of sha1 -> script source code. 2011-07-13 15:38:03 +02:00
antirez
36b24ea34e scripting.txt file removed, content merged into the TODO file 2011-07-13 12:04:02 +02:00
Salvatore Sanfilippo
8c93f733e5 Merge pull request #69 from AquaGeek/patch-1
Minor spelling fixes
2011-07-13 03:00:28 -07:00
Tyler Stromberg
c14ce48cdf Minor spelling fixes 2011-07-12 18:50:18 -07:00