- 11 6月, 2015 1 次提交
-
-
由 Enrico Giordani 提交于
-
- 03 6月, 2015 2 次提交
-
-
由 Enrico Giordani 提交于
Eliminated 'long' from antirez code, in favor of PORT_LONG, PORT_LONGLONG, etc. Portability fixes for LONG_MAX, LONG_MIN. Replaces some #ifdef _WIN32
-
由 zeliard 提交于
-
- 29 5月, 2015 1 次提交
-
-
由 Alexis Campailla 提交于
Fix definition of ssize_t and off_t.
-
- 06 2月, 2015 1 次提交
-
-
由 Alexis Campailla 提交于
Refactor BeginForkOperation in preparation for diskless replication: - Separate copying of operation data and child process creation - Provide specific entry points for each operation type
-
- 21 1月, 2015 1 次提交
-
-
由 antirez 提交于
The cleanup code expects that if 'di' is not NULL, it is a valid iterator that should be freed. The result of this bug was a crash of the AOF rewriting process if an error occurred after the DBs data are written and the iterator is no longer valid.
-
- 04 12月, 2014 1 次提交
-
-
由 Alexis Campailla 提交于
Slave processes were not using the master process log file. On Unix this is relying on the server.logfile variable being available to the slave processes through fork(), and reopening the logfile in the slaves (on every log event). On Windows we don't use server.logfile and require an explicity call to setLogFile. I resorted to explicitly passing the logfile to the slaves as a command line argument, so the logfile argument (and logging) can be available to the slave before qfork and globals setup have completed. Writing to the same file atomically from multiple processes requires using CreateFile with FILE_APPEND_DATA, instead of fopen, which provides atomicity on Unix but not on Windows. Also changed the implementation to not reopen the logfile on every log event, and not flushing the file on every write. Performance is dramaticaly improved this way.
-
- 06 10月, 2014 3 次提交
-
-
由 Matt Stancliff 提交于
- Remove trailing newlines from redis.conf - Fix comment misspelling - Clarifies zipEncodeLength usage and a C API mention (#1243, #1242) - Fix cluster typos (inspired by @papanikge #1507) - Fix rewite -> rewrite in a few places (inspired by #682) Closes #1243, #1242, #1507
-
由 Jan-Erik Rediger 提交于
Closes #1871
-
由 zionwu 提交于
error != success; and 0 != number of bytes written Closes #1806
-
- 02 10月, 2014 1 次提交
-
-
由 jonathan pickett 提交于
I found a case where the temp-rewriteaof-old-xxxx.aof files were not being deleted. Added the _O_TEMPORARY flag to the open() call to guarantee that the underlying CreateFile call is being called with the FILE_FLAG_DELETE_ON_CLOSE.
-
- 17 9月, 2014 1 次提交
-
-
由 jonathan pickett 提交于
-
- 16 9月, 2014 2 次提交
-
-
由 antirez 提交于
It is not clear if files open in append only mode will automatically fix their offset after a truncate(2) operation. This commit makes sure that we reposition the AOF file descriptor offset at the end of the file after a truncated AOF is loaded and trimmed to the last valid command.
-
由 antirez 提交于
Recently we introduced the ability to load truncated AOFs, but unfortuantely the support was broken since the server, after loading the truncated AOF, continues appending to the file that is corrupted at the end. The problem is fixed only in the next AOF rewrite. This commit fixes the issue by truncating the AOF to the last valid opcode, and aborting if it is not possible to truncate the file correctly.
-
- 08 9月, 2014 3 次提交
- 27 8月, 2014 1 次提交
-
-
由 antirez 提交于
-
- 01 8月, 2014 1 次提交
-
-
由 jonathan pickett 提交于
-
- 10 7月, 2014 5 次提交
- 21 6月, 2014 1 次提交
-
-
由 antirez 提交于
This commit adds peer ID caching in the client structure plus an API change and the use of sdsMakeRoomFor() in order to improve the reallocation pattern to generate the CLIENT LIST output. Both the changes account for a very significant speedup.
-
- 22 5月, 2014 1 次提交
-
-
由 antirez 提交于
When we are blocked and a few events a processed from time to time, it is smarter to call the event handler a few times in order to handle the accept, read, write, close cycle of a client in a single pass, otherwise there is too much latency added for clients to receive a reply while the server is busy in some way (for example during the DB loading).
-
- 25 3月, 2014 1 次提交
-
-
由 Matt Stancliff 提交于
Previously, the (!fp) would only catch lack of free space under OS X. Linux waits to discover it can't write until it actually writes contents to disk. (fwrite() returns success even if the underlying file has no free space to write into. All the errors only show up at flush/sync/close time.) Fixes antirez/redis#1604
-
- 12 2月, 2014 1 次提交
-
-
由 antirez 提交于
A system similar to the RDB write error handling is used, in which when we can't write to the AOF file, writes are no longer accepted until we are able to write again. For fsync == always we still abort on errors since there is currently no easy way to avoid replying with success to the user otherwise, and this would violate the contract with the user of only acknowledging data already secured on disk.
-
- 14 1月, 2014 1 次提交
-
-
由 antirez 提交于
-
- 08 1月, 2014 1 次提交
-
-
由 Jonathan Pickett 提交于
Added dictionary master hash to global state being copied into qforked process. This fixes the fork/expire problems.
-
- 03 1月, 2014 1 次提交
-
-
由 Jonathan Pickett 提交于
replacing win32_cow implementation with win32_qfork. replication currently broken, but all other unit tests are working.
-
- 05 12月, 2013 1 次提交
-
-
由 antirez 提交于
-
- 27 11月, 2013 1 次提交
-
-
由 Jonathan Pickett 提交于
-
- 07 11月, 2013 1 次提交
-
-
由 Jonathan Pickett 提交于
Disabling the COW replacement for fork() temporarily. This appears to fix crashing issues with redis. Also commenting out related unit tests. Replication is broken until COW (or a better fork replacement) is put back in.
-
- 19 10月, 2013 1 次提交
-
-
由 Jonathan Pickett 提交于
Work in progress. Temporary move towards separate IOCP/non-IOCP builds because of thread state issues. Neither build set is particularily stable at the moment.
-
- 20 8月, 2013 1 次提交
-
-
由 antirez 提交于
-
- 22 7月, 2013 1 次提交
-
-
由 Henry Rawas 提交于
-
- 08 7月, 2013 1 次提交
-
-
由 antirez 提交于
-
- 26 6月, 2013 1 次提交
-
-
由 antirez 提交于
This commit uses the Replication Script Cache in order to avoid translating EVALSHA into EVAL whenever possible for both the AOF and slaves.
-
- 02 5月, 2013 1 次提交
-
-
由 charsyam 提交于
There was a race condition in the AOF rewrite code that, with bad enough timing, could cause a volatile key just about to expire to be turned into a non-volatile key. The bug was never reported to cause actualy issues, but was found analytically by an user in the Redis mailing list: https://groups.google.com/forum/?fromgroups=#!topic/redis-db/Kvh2FAGK4Uk This commit fixes issue #1079.
-