3644 Commits

Author SHA1 Message Date
antirez
0ff23b8ab3 show node with myself flag always as connected in CLUSTER NODES output. 2011-09-28 18:28:36 +02:00
antirez
8f4045ff11 Scripting engine now only loads selected libraries, using code originally contributed by @loopole. 2011-09-27 18:46:23 +02:00
antirez
dec78a35a5 Return errors if a write command is called inside a Lua script after a random command was called. See https://github.com/antirez/redis/issues/95 for more information. 2011-09-27 15:30:31 +02:00
antirez
cd80380f20 Deny commands flagged as REDIS_CMD_NOSCRIPT from Lua scripts 2011-09-27 13:57:10 +02:00
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
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
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
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
20b15f7b28 enable zmalloc thread safety support now that we have the bio.c background thread. 2011-09-14 19:09:48 +02: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
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