Commit Graph
5614 Commits
Author SHA1 Message Date
Tomasz Poradowski c334dd639d setting v4.0.2.2 in MSI installer 2018-03-26 12:39:43 +02:00
Tomasz Poradowski 81af7b10ef added resources file with Version resource
- redis-server.exe and redis-cli.exe will now have a proper version shown in Properties->Details
2018-03-26 12:36:49 +02:00
Tomasz Poradowski e1a9982ade merged overlooked changes in src/aof.c
- src/aof.c was initially not correctly merged (Redis 4.0.2 merged with MS OpenTech's Redis 3.2.100) which caused
  errors when rewriting AOF file
- bumping version to 4.0.2.2

Fixes #12
2018-03-23 14:02:23 +01:00
Tomasz Poradowski 9346455a07 version 4.0.2.1 v4.0.2.1-alpha 2018-03-17 15:52:08 +01:00
Tomasz Poradowski 0da57275af writeToClient() properly handles chunk splitting
In case there are larger amounts of data to be sent back to client they are normally split into up to 64K chunks (unless server exceeds "maxmemory" which causes it to send as much as possible). When writeToClient() returns and has pending replies to be sent - it is scheduled in event loop and when IOCP signals that the socket is writeable again - sendReplyToClient() handler is called and sends additional chunk via writeToClient(). This however behaves differently under Windows and in order to send the following pedning replies - we need to schedule sendReplyToClient() again. Furthermore when we are sending data too fast and receive WSAEWOULDBLOCK error/warning - we back off again and re-schedule sending.

Fixes #11
2018-03-17 09:56:14 +01:00
Tomasz Poradowski 2f87db079b removing usage of test #define 2017-12-14 00:30:29 +01:00
Tomasz Poradowski ac2d8ebe72 Merge branch 'win-4.0.2' of https://github.com/tporadowski/redis into win-4.0.2 2017-12-14 00:28:39 +01:00
Tomasz Poradowski 1d95d35355 enable command history in redis-cli
- when output is a TTY - always enable linenoise history (regardless if history file name can be determined)
- adjusted redis-cli/getDotfilePath() to use %HOMEDRIVE%%HOMPATH% environment variables to find user's home folder
2017-12-14 00:25:16 +01:00
Tomasz Poradowski e16933cec1 enable command history in redis-cli
- when output is a TTY - always enable linenoise history (regardless if history file name can be determined)
- adjusted redis-cli/getDotfilePath() to use %HOMEDRIVE%%HOMPATH% environment variables to find user's home folder
2017-12-13 23:32:36 +01:00
Tomasz Poradowski c589a9d812 info about alpha release, removed completed task 2017-11-22 00:29:08 +01:00
Tomasz Poradowski 2ec0d85279 redis-check-aof and redis-check-rdb tools
- removed separate project for redis-check-aof
- both tools are now a copy of redis-server.exe
- running given tool calls proper action and causes
  the application to exit
- updated installer

Fixes #2
v4.0.2-alpha
2017-11-22 00:12:28 +01:00
Tomasz Poradowski 5e7037e2b4 adjusted networking.c/writeToClient()
- modified function writeToClient() (in _WIN32 specific block) to be up-to-date with Redis' code

Fixes #7
2017-11-18 23:07:10 +01:00
Tomasz Poradowski abf09db57c removed information about non-working part which was fixed
Forking of redis-server was fixed (#1), so I removed it from "non-working yet" list.
2017-11-02 10:01:43 +01:00
Tomasz Poradowski ae96cd60e8 passing dictionary hash seed as copy and not as pointer
moved "used_memory_mutex" initialization earlier to Win32_QFork.cpp/main()

Fixes #1
2017-11-02 00:59:41 +01:00
Tomasz Poradowski 72d2200920 explicit initialization of a mutex
- redis-cli now explicitly initializes "used_memory_mutex" defined and used in zmalloc.c
Fixes #3
2017-11-01 00:07:55 +01:00
Tomasz Poradowski 61415cb7f2 Added disclaimer 2017-10-27 13:42:42 +02:00
Tomasz Poradowski 0267dd21c3 integrated most of changes from redis/4.0.2 onto win-3.2.100 source
- TODO: modules support (currently turned off), fix in fork() implementation that crashes at the moment, update of libraries in "deps" folder
2017-10-27 13:13:09 +02:00
Tomasz Poradowski 26accdfb00 updated solution to VS2017 15.4.1 2017-10-24 12:49:50 +02:00
Enrico Giordani def0757b5c [Release] 3.2.100 win-3.2.100 2016-07-01 16:52:38 +02:00
Enrico Giordani f7e6eea28b [Portability] strtol and strtoul fixes. 2016-07-01 15:50:28 +02:00
Enrico Giordani 47975c060f [Fix] Possible AV during background save. 2016-06-30 22:11:38 +02:00
Enrico Giordani 7f93a28378 [Fix] Use overlapped sockets for cluster failover communication. 2016-06-30 22:08:13 +02:00
Enrico Giordani ba609c786b [Cleanup cleanup] Minor changes. 2016-06-30 22:05:28 +02:00
Enrico Giordani b924761cac [Portability] Windows portability fixes. 2016-06-22 14:52:59 +02:00
Enrico Giordani 290d999822 Merged tag 3.2.1 from antirez/3.2. 2016-06-20 10:29:13 +02:00
Enrico Giordani e8544b830b [Setup] Removed subdir for log, the log is now saved in the main redis dir. 2016-06-20 10:18:29 +02:00
antirez 04c7261f03 Redis 3.2.1. 3.2.1 2016-06-17 15:15:21 +02:00
oranagra 8207e82804 config set list-max-ziplist-size didn't support negative values, unlike config file 2016-06-17 14:49:37 +02:00
antirez 6ad0371c9b Fix Sentinel pending commands counting.
This bug most experienced effect was an inability of Redis to
reconfigure back old masters to slaves after they are reachable again
after a failover. This was due to failing to reset the count of the
pending commands properly, so the master appeared fovever down.

Was introduced in Redis 3.2 new Sentinel connection sharing feature
which is a lot more complex than the 3.0 code, but more scalable.

Many thanks to people reporting the issue, and especially to
@sskorgal for investigating the issue in depth.

Hopefully closes #3285.
2016-06-16 19:24:34 +02:00
antirez 58f1d446c3 redis-cli: really connect to the right server.
I recently introduced populating the autocomplete help array with the
COMMAND command if available. However this was performed before parsing
the arguments, defaulting to instance 6379. After the connection is
performed it remains stable.

The effect is that if there is an instance running on port 6339,
whatever port you specify is ignored and 6379 is connected to instead.
The right port will be selected only after a reconnection.

Close #3314.
2016-06-16 17:25:13 +02:00
Jan-Erik Rediger b6007b324b Remove debug printing 2016-06-16 17:18:06 +02:00
antirez f592b4d317 RESTORE: accept RDB dumps with older versions.
Reference issue #3218.

Checking the code I can't find a reason why the original RESTORE
code was so opinionated about restoring only the current version. The
code in to `rdb.c` appears to be capable as always to restore data from
older versions of Redis, and the only places where it is needed the
current version in order to correctly restore data, is while loading the
opcodes, not the values itself as it happens in the case of RESTORE.

For the above reasons, this commit enables RESTORE to accept older
versions of values payloads.
2016-06-16 15:56:29 +02:00
oranagra 047ced4473 CLIENT error message was out of date 2016-06-16 12:59:26 +02:00
oranagra 14e04847ac fix georadius returns multiple replies 2016-06-16 12:58:18 +02:00
antirez bd23ea3f9f Minor aesthetic fixes to PR #3264.
Comment format fixed + local var modified from camel case to underscore
separators as Redis code base normally does (camel case is mostly used
for global symbols like structure names, function names, global vars,
...).
2016-06-16 12:56:28 +02:00
oranagra 2a3ee58ec7 check WRONGTYPE in BITFIELD before looping on the operations.
optimization: lookup key only once, and grow at once to the max need
fixes #3259 and #3221, and also an early return if wrongtype is discovered by SET
2016-06-16 12:56:17 +02:00
oranagra a2e27b810e fix crash in BITFIELD GET on non existing key or wrong type see #3259
this was a bug in the recent refactoring: bee963c4459223d874e3294a0d8638a588d33c8e
2016-06-16 12:56:17 +02:00
MOON_CLJ 26555f5e00 fix check when can't send the command to the promoted slave 2016-06-15 17:24:43 +02:00
antirez f1c237cb6a Test TOUCH and new TTL / TYPE behavior about object access time. 2016-06-15 17:16:13 +02:00
antirez d4831e3287 GETRANGE: return empty string with negative, inverted start/end. 2016-06-15 16:05:54 +02:00
antirez 9942070f5a Remove additional round brackets from fix for #3282. 2016-06-15 16:05:39 +02:00
wenduo f45fa5d05f bitcount bug:return non-zero value when start > end (both negative) 2016-06-15 16:05:33 +02:00
antirez 0cb86064e6 Regression test for #3282. 2016-06-15 16:04:44 +02:00
Enrico Giordani 6c8d3a57ac [Cleanup] Removed unused project.
Redis-checkdump is not anymore a stand-alone project.
2016-06-15 14:08:42 +02:00
antirez b23aa6706a TTL and TYPE LRU access fixed. TOUCH implemented. 2016-06-15 09:18:55 +02:00
Enrico Giordani 649cd886c3 Windows port of antirez/3.2. win-3.2.0000-preview 2016-06-14 18:43:17 +02:00
antirez 6e4204fec9 redis-cli help.h updated. 2016-06-14 14:45:48 +02:00
antirez bb43f4cab2 Fix GEORADIUS wrong output with radius > Earth radius.
Close #3266
2016-06-13 12:11:15 +02:00
antirez 16102bc0af Geo: fix typo in geohashEstimateStepsByRadius().
I'm the author of this line but I can't see a good reason for it to
don't be a typo, a step of 26 should be valid with 52 bits per
coordinate, moreover the line was:

    if (step > 26) step = 25;

So a step of 26 was actually already used, except when one of 27 was
computed (which is invalid) only then it was trimmed to 25 instead of
26.

All tests passing after the change.
2016-06-13 12:11:02 +02:00
antirez 014bf80442 Avoid undefined behavior in BITFIELD implementation.
Probably there is no compiler that will actaully break the code or raise
a signal for unsigned -> signed overflowing conversion, still it was
apparently possible to write it in a more correct way.

All tests passing.
2016-06-13 12:10:58 +02:00