guiquanz
df7a5b7157
Fixed many typos.
2013-01-19 10:59:44 +01:00
antirez
a32d1ddff6
BSD license added to every C source and header file.
2012-11-08 18:31:32 +01:00
Erik Dubbelboer
bde06747b8
Added consts keyword where possible
2012-03-30 21:19:51 +02:00
antirez
c0c5a7a6cc
sds.c: sdsAllocSize() function added.
2012-03-14 14:58:26 +01:00
antirez
a9004ec1fa
sds.c new function sdsRemoveFreeSpace().
...
The new function is used in order to resize the string allocation so
that only the minimal allocation possible is used, removing all the free
space at the end of the string normally used to improve efficiency of
concatenation operations.
2012-03-14 10:13:23 +01:00
antirez
80f84859da
Obsolete SDS_ABORT_ON_OOM removed from sds.c
2012-01-16 10:08:33 +01:00
antirez
7dbf620812
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
8201022103
Added sdscatsds() to sds.c/h
2011-11-21 15:34:00 +01:00
antirez
7c7125a370
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
antirez
09f0a5dfc7
added a comment to sdsMakeRoomFor() to make it clear what the function actually does.
2011-11-02 16:09:14 +01:00
antirez
4153fb8f38
sds.c single quotes support
2011-10-28 17:31:40 +02:00
Pieter Noordhuis
c73a656652
Re-use AOF buffer when it is small enough
2011-09-13 12:22:54 +02:00
antirez
cfd32c162f
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
a95411d5e9
Check seplen and len before malloc'ing "tokens"
2011-05-05 16:32:22 +02:00
Pieter Noordhuis
95fe886c95
Inline sdslen and sdsavail (thanks to @bitbckt)
2011-05-05 16:25:48 +02:00
antirez
c79332ab24
initial cluster config load code
2011-04-07 12:55:02 +02:00
antirez
da14691f5f
DUMP implemented, RESTORE and MIGRATE fixed. Use zcalloc() instead of zmalloc()+memset() in sds.c when a new string is created with NULL initialization pointer.
2011-04-01 18:59:28 +02:00
antirez
db2cf05844
Fixed sdssplitargs() handling of hex-style escapes.
2011-03-22 22:49:12 +01:00
antirez
d2c926a824
sdscatrepr() fixed. Now newlines and other special chars are escaped correctly
2011-03-20 18:24:49 +01:00
antirez
17c4da8d7f
Fixed a theoretical non exploitable security bug reported by @chrisrohlf. In theory if we undefine SDS_ABORT_ON_OOM from sds.c AND modify zmalloc.c in order to don't quit on out of memory (but this would break every other part of Redis), on out of memory there is a possible heap overflow.
2011-01-27 10:27:25 +01:00
Pieter Noordhuis
cc8322919a
Change function name to match what it does
2010-12-10 12:16:16 +01:00
Pieter Noordhuis
09586f8b7a
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
c139b6812d
Add commands SETBIT/GETBIT
2010-12-09 16:39:33 +01:00
antirez
9653f0ce26
more tests for sds.c
2010-09-23 16:39:02 +02:00
antirez
f8324cdeb3
minimal C test framework + a first example sds.c tests
2010-09-23 16:05:17 +02:00
Pieter Noordhuis
60361e5aac
Add sds function that can be called with va_list
2010-09-02 21:00:15 +02:00
Pieter Noordhuis
2929ca9786
Fix parenthesis error on decrementing *argc
2010-08-26 13:18:44 +02:00
Pieter Noordhuis
4b93e5e267
Merge master and move argument splitting patch to sds.c
2010-08-25 13:08:43 +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