Matt Stancliff
2d90619f88
Add centralized IP/Peer formatting functions
...
This stops us from needing to manually check against ":" to
add brackets around IPv6 addresses everywhere.
2014-12-11 10:05:35 -05:00
antirez
68db7b1f56
Use unsigned integers in SDS header.
...
This raises the max string to 4GB without any downside.
2014-08-13 10:53:51 +02:00
antirez
f9a4a80f49
Use sdscatfmt() in getClientInfoString() to make it faster.
2014-04-28 16:55:43 +02:00
antirez
610224d0d0
Fix sdsempty() prototype in sds.h.
2013-08-12 11:38:21 +02:00
antirez
6ea8e0949c
sdsrange() does not need to return a value.
...
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".
2013-07-24 11:21:39 +02:00
antirez
585b0a61ce
sds.c: new function sdsjoin() to join strings.
2013-07-04 18:30:59 +02:00
antirez
729a3432ba
sds.c: sdssplitargs_free() removed as it was a duplicate.
2013-03-06 12:38:06 +01:00
Erik Dubbelboer
0a2ff52eae
Added consts keyword where possible
2012-03-30 21:19:51 +02:00
antirez
739803c064
sds.c: sdsAllocSize() function added.
2012-03-14 14:58:26 +01:00
antirez
bd068b15c2
sds.c no longe pre-allocate more than 1MB of free space ahead. This fixes issue #252 .
2012-01-16 10:03:38 +01:00
antirez
08a879af6e
Added sdscatsds() to sds.c/h
2011-11-21 15:34:00 +01:00
antirez
d0b2a9b223
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.
2011-11-02 16:50:59 +01:00
Pieter Noordhuis
f990782f4d
Re-use AOF buffer when it is small enough
2011-09-13 12:22:54 +02:00
antirez
3bb818df40
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.
2011-05-25 12:32:50 +02:00
Pieter Noordhuis
ded614f803
Inline sdslen and sdsavail (thanks to @bitbckt)
2011-05-05 16:25:48 +02:00
antirez
726a39c15f
initial cluster config load code
2011-04-07 12:55:02 +02:00
Pieter Noordhuis
cc20906390
Change function name to match what it does
2010-12-10 12:16:16 +01:00
Pieter Noordhuis
eae33c1c81
Add generic function to grow an sds value
...
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.
2010-12-10 11:58:21 +01:00
Pieter Noordhuis
3c1bf4957e
Add commands SETBIT/GETBIT
2010-12-09 16:39:33 +01:00
Pieter Noordhuis
60361e5aac
Add sds function that can be called with va_list
2010-09-02 21:00:15 +02:00
antirez
cbce517145
redis cli argument splitting is general and is now moved into the sds.c lib
2010-08-05 11:36:39 +02:00
antirez
e2641e09cc
redis.c split into many different C files.
...
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
2010-07-01 14:38:51 +02:00