2182 Commits

Author SHA1 Message Date
antirez
2c4d7c157d added the NOSCRIPT and RANDOM command flags 2011-09-27 13:45:46 +02:00
antirez
b84f94b1eb command table refactoring to make it simpler adding new flags 2011-09-26 15:40:39 +02:00
antirez
66b7c21fc7 Lua math.random and math.randomseed replaced with our own version based on redisSrand48(). Seed initialized to the same value at every EVAL/EVALSHA call. 2011-09-23 15:40:58 +02:00
antirez
3ccc3570c2 Defined macro with bigger number that redisLrand48() can output. 2011-09-23 15:06:07 +02:00
antirez
148e45be5b libc neutral random function derived from a drand48() implementation added. Will be used to replace Lua's math.random implementation. 2011-09-23 14:51:48 +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
596ac8715e make sure to return just 1 for rio.c write when the target is a buffer, as we do when the target is a file. 2011-09-22 15:54:08 +02:00
antirez
06c356d912 comment on top of the _rio structure modified for correctness as actually fwrite/fread semantics is different in general, but was 0/1 in our old usage before rio.c as we always used 1 as number items, and the actual number of bytes to read as item length. 2011-09-22 15:47:48 +02:00
antirez
dbdf74ddfd merge conflicts resolved 2011-09-22 15:15:26 +02:00
Salvatore Sanfilippo
bcbb91e6e3 Merge pull request #97 from jvain/redis-cli
redis-cli segfaults with single numeric argument greater than zero
2011-09-21 13:32:24 -07:00
Juri M. Vainonen
2d52506bc2 fixed a small bug that caused redis-cli to segfault when given single numeric parameter greater that zero. 2011-09-21 23:22:14 +03:00
antirez
7b256eac36 TODO updated 2011-09-21 19:13:43 +02:00
antirez
3ebbe97fbe TODO updated after moving more things into the github issues system 2011-09-20 15:34:49 +02:00
antirez
93fb2efb38 TODO updated 2011-09-20 14:50:01 +02:00
antirez
35e2a995e4 no longer valid design documents removed 2011-09-20 11:15:55 +02:00
Salvatore Sanfilippo
cdb2ea2d52 Merge pull request #72 from datafueled/spelling
Spelling fixes.
2011-09-20 02:12:14 -07:00
Salvatore Sanfilippo
660c6f5e69 Merge pull request #78 from vambo/patch-1
Corrected typo in documentation for R_Zero, R_PosInf, R_NegInf, R_Nan;
2011-09-20 02:00:58 -07:00
Salvatore Sanfilippo
d5df7a7666 Merge pull request #79 from annulen/mac_ppc
Fixed compilation on Mac/PPC
2011-09-20 01:58:55 -07: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
1fb3f7ad07 Include port number in error when can't bind lisetning port on startup. 2011-09-20 10:48:21 +02:00
antirez
9f50eaa47a Fixed comment typo 2011-09-19 17:50:07 +02:00
antirez
0a551df576 Comment out things in bio.c that are currently not useful but that may be useful in the future. 2011-09-19 17:06:27 +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
918e80a29c use aof_fsync wrapper instead of fsync(2) in bio.c 2011-09-16 15:53:01 +02:00
antirez
fdd6486178 Merge remote-tracking branch 'origin/unstable' into bg-aof-2 2011-09-16 15:44:14 +02:00
antirez
ee7e838830 commenting out aof-race test for now, waiting for a fix to issue #80 2011-09-16 15:43:03 +02:00
antirez
71d6796fd9 Merge remote-tracking branch 'origin/unstable' into bg-aof-2 2011-09-16 12:36:33 +02:00
antirez
07978ceb03 fixed flushAppendOnlyFile() function prototype to reflect the new implementation, fixing compilation. 2011-09-16 12:36:17 +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
a9f7a179fd Failing test related to AOF rewrite buffers 2011-09-16 11:25:05 +02:00
Pieter Noordhuis
17629fc963 Enforce upper bound for number of requests in redis-benchmark 2011-09-16 11:25:00 +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
68c4acd91b Fixed a bug in the average latency metering of redis-cli --latency 2011-09-15 19:33:24 +02:00
antirez
84c42e7da3 Implemented --latency in redis-cli 2011-09-15 19:28:00 +02:00
antirez
dc5a9e043c REDIS_BIO_AOF_FSYNC implemented 2011-09-15 18:25:53 +02:00
antirez
8bf559aeca 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
antirez
689520b365 some more comment about bio.c design 2011-09-15 18:23:11 +02:00
antirez
fa636fbb51 Remove backgroud jobs from the queue only when the processing was completed, and not just started. 2011-09-15 18:21:27 +02:00
antirez
1b5ba28d72 Use a different thread for every different type of background job 2011-09-15 18:21:16 +02:00
antirez
5628b46d5d Better comments for bioWaitPendingJobsLE 2011-09-15 18:21:02 +02:00
antirez
485db6ea68 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
antirez
d7fc4d591d TODO updated with 2.6 things 2011-09-15 17:04:55 +02:00
antirez
20b15f7b28 enable zmalloc thread safety support now that we have the bio.c background thread. 2011-09-14 19:09:48 +02:00
Salvatore Sanfilippo
8e0f312843 Merge pull request #77 from Poincare/patch-1
Added note about Tcl
2011-09-14 06:27:47 -07:00
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