- 23 Feb, 2017 1 commit
-
-
oranagra authored
this commit also contains small bugfix in rdbLoadLzfStringObject a bug that currently has no implications.
-
- 17 Nov, 2015 1 commit
-
-
antirez authored
Redis-cli handles the debugger "eval" command in a special way since sdssplitargs() would not be ok: we need to send the Redis debugger the whole Lua script without any parsing. However in order to later free the argument vector inside redis-cli using just sdsfreesplitres(), we need to allocate the array of SDS pointers using the same allocator SDS is using, that may differ to what Redis is using. So now a newer version of SDS exports sds_malloc() and other allocator functions to give access, to the program it is linked to, the allocator used internally by SDS.
-
- 25 Jul, 2015 4 commits
- 15 Jul, 2015 1 commit
-
-
antirez authored
This is an attempt to use the refcount feature of the sds.c fork provided in the Pull Request #2509. A new type, SDS_TYPE_5 is introduced having a one byte header with just the string length, without information about the available additional length at the end of the string (this means that sdsMakeRoomFor() will be required each time we want to append something, since the string will always report to have 0 bytes available). More work needed in order to avoid common SDS functions will pay the cost of this type. For example both sdscatprintf() and sdscatfmt() should try to upgrade to SDS_TYPE_8 ASAP when appending chars.
-
- 14 Jul, 2015 1 commit
-
-
Oran Agra authored
-
- 08 Jan, 2015 1 commit
-
-
antirez authored
-
- 02 Jan, 2015 1 commit
-
-
Matt Stancliff authored
Use the existing memory space for an SDS to convert it to a regular character buffer so we don't need to allocate duplicate space just to extract a usable buffer for native operations.
-
- 23 Dec, 2014 1 commit
-
-
Matt Stancliff authored
Previously, many files had individual main() functions for testing, but each required being compiled with their own testing flags. That gets difficult when you have 8 different flags you need to set just to run all tests (plus, some test files required other files to be compiled aaginst them, and it seems some didn't build at all without including the rest of Redis). Now all individual test main() funcions are renamed to a test function for the file itself and one global REDIS_TEST define enables testing across the entire codebase. Tests can now be run with: - `./redis-server test <test>` e.g. ./redis-server test ziplist If REDIS_TEST is not defined, then no tests get included and no tests are included in the final redis-server binary.
-
- 11 Dec, 2014 2 commits
-
-
antirez authored
Specialized single-use function. Not the best match for sds.c btw. Also genClientPeerId() is no longer static: we need symbols.
-
Matt Stancliff authored
This stops us from needing to manually check against ":" to add brackets around IPv6 addresses everywhere.
-
- 13 Aug, 2014 1 commit
-
-
antirez authored
This raises the max string to 4GB without any downside.
-
- 28 Apr, 2014 1 commit
-
-
antirez authored
-
- 12 Aug, 2013 1 commit
-
-
antirez authored
-
- 24 Jul, 2013 1 commit
-
-
antirez authored
Actaully the string is modified in-place and a reallocation is never needed, so there is no need to return the new sds string pointer as return value of the function, that is now just "void".
-
- 04 Jul, 2013 1 commit
-
-
antirez authored
-
- 06 Mar, 2013 1 commit
-
-
antirez authored
-
- 30 Mar, 2012 1 commit
-
-
Erik Dubbelboer authored
-
- 14 Mar, 2012 1 commit
-
-
antirez authored
-
- 16 Jan, 2012 1 commit
-
-
antirez authored
-
- 21 Nov, 2011 1 commit
-
-
antirez authored
-
- 02 Nov, 2011 1 commit
-
-
antirez authored
sdsMakeRoomFor() exposed as public API. sdsIncrLen() added. Both the changes make it possible to copy stuff from a system call to an sds buffer without the need of an additional buffer and copying overhead.
-
- 13 Sep, 2011 1 commit
-
-
Pieter Noordhuis authored
-
- 25 May, 2011 1 commit
-
-
antirez authored
Make sure error and status replies emitted by Lua scripts can never have more than a newline, otherwise it is a protocol violation and clients will desync.
-
- 05 May, 2011 1 commit
-
-
Pieter Noordhuis authored
-
- 07 Apr, 2011 1 commit
-
-
antirez authored
-
- 10 Dec, 2010 2 commits
-
-
Pieter Noordhuis authored
-
Pieter Noordhuis authored
Move logic concerned with setting a bit in an sds to the SETBIT command instead of keeping it in sds.c. The function to grow an sds can and will be reused for a command to set a range within a string value.
-
- 09 Dec, 2010 1 commit
-
-
Pieter Noordhuis authored
-
- 02 Sep, 2010 1 commit
-
-
Pieter Noordhuis authored
-
- 05 Aug, 2010 1 commit
-
-
antirez authored
-
- 01 Jul, 2010 1 commit
-
-
antirez authored
networking related stuff moved into networking.c moved more code more work on layout of source code SDS instantaneuos memory saving. By Pieter and Salvatore at VMware ;) cleanly compiling again after the first split, now splitting it in more C files moving more things around... work in progress split replication code splitting more Sets split Hash split replication split even more splitting more splitting minor change
-
- 11 May, 2010 1 commit
-
-
antirez authored
long long to string conversion speedup applied in other places as well. Still the code has bugs, fixing right now...
-
- 10 May, 2010 1 commit
-
-
antirez authored
-
- 19 Feb, 2010 1 commit
-
-
antirez authored
A problem with replication with multiple slaves connectiong to a single master fixed. It was due to a typo, and reported on github by the user micmac. Also the copyright year fixed from many files.
-
- 18 Dec, 2009 1 commit
-
-
antirez authored
-
- 05 Dec, 2009 1 commit
-
-
antirez authored
use __attribute__ format in sdscatprintf() when the compiler is GCC. Fixed format bugs resulting from the new warnings.
-
- 07 Oct, 2009 1 commit
-
-
antirez authored
-