summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Now Lua scripts dispatch Redis commands properly calling the call() ↵antirez2012-02-024-16/+34
| | | | function. In order to make this possible call() was improved with a new flags argument that controls how the Redis command is executed.
* Set a 3.5 GB maxmemory limit with noeviction policy if a 32 bit instance ↵antirez2012-02-021-0/+10
| | | | without user-provided memory limits is detected.
* Added a server.arch_bits field instead of computing it at runtime for INFO.antirez2012-02-022-2/+4
|
* Only incremnet stats for key miss/hit when the key is semantically accessed ↵antirez2012-02-011-3/+8
| | | | in read-only.
* Make SORT BY <constant> STORE ... to always produce the same output by force ↵antirez2012-02-011-0/+9
| | | | sorting, so that we have deterministic replication of this command.
* SORT is now more deterministic: does not accept to compare by score items ↵antirez2012-02-014-6/+51
| | | | that have scores not representing a valid double. Also items with the same score are compared lexycographically. At the same time the scripting side introduced the ability to sort the output of SORT when sort uses the BY <constant> optimization, resulting in no specific ordering. Since in this case the user may use GET, and the result of GET can be null, converted into false as Lua data type, this commit also introduces the ability to sort Lua tables containining false, only if the first (faster) attempt at using just table.sort with a single argument fails.
* Order output of commands returning random arrays using table.sort when ↵antirez2012-01-313-9/+36
| | | | called from Lua, partially fixing issue #165. The issue is yet not completely fixed since we can't add the REDIS_CMD_SORT_FOR_SCRIPT flag in SORT currently, both because it may contain NULLs and because it is not cool to re-sort everything at every call when instead this should be sorted only if BY <constant> is used.
* Fixed redis-benchmark --help output typoantirez2012-01-311-2/+4
|
* 64 bit instances are no longer limited to have at max 2^32-1 elements in lists.antirez2012-01-315-18/+12
|
* Merge remote-tracking branch 'origin/unstable' into unstableantirez2012-01-301-2/+2
|\
| * Merge pull request #319 from fawek/lua-error-locationSalvatore Sanfilippo2012-01-301-2/+2
| |\ | | | | | | Lua reports line numbers off by one in error messages
| | * Lua reports line numbers off by one in error messagesJakub Wieczorek2012-01-291-2/+2
| | |
* | | setKey(): call the higher level wrapper setModifiedKey() instead of ↵antirez2012-01-301-1/+1
|/ / | | | | | | touchWatchedKey() even if currently they are exactly the same.
* | SORT with STORE removes key if result is empty. This fixes issue #227.Michal Kwiatkowski2012-01-301-2/+7
|/
* Fixed typo in getClientLimitClassByName()antirez2012-01-251-1/+1
|
* Fixed another possible bug in cluster.c found by clang --analyze.antirez2012-01-251-1/+1
|
* Merge branch 'unstable' into limitsantirez2012-01-251-1/+1
|\
| * Fixed a non critical bug signaled by clang static analyzer thanks to Mukund ↵antirez2012-01-251-1/+1
| | | | | | | | Sivaraman for reporting it: there was a not initialized field populating the cluster message header, but it is always fixed at later time before sending the packet.
* | Merge branch 'unstable' into limitsantirez2012-01-251-13/+11
|\ \ | |/
| * aeCreateEventLoop() cleanup on error unified in a single block (originalantirez2012-01-251-15/+11
| | | | | | | | | | patch by Mukund Sivaraman, modified by me to make it simpler and to use my coding style).
| * If aeApiCreate() fails, there's probably not much one can do, but in the ↵Mukund Sivaraman2012-01-251-0/+2
| | | | | | | | name of consistency...
* | lenght -> lengthantirez2012-01-242-2/+2
| |
* | after all closing a client for output buffer limit overcoming is a WARNING ↵antirez2012-01-241-1/+1
| | | | | | | | level message.
* | client-output-buffer-limit documented in redis.confantirez2012-01-241-4/+4
| |
* | Client output buffer limits: configuration of parameters for the different ↵antirez2012-01-243-2/+106
| | | | | | | | classes of clients implemented.
* | asyncCloseClientOnOutputBufferLimitReached() now ignores clients with ↵antirez2012-01-242-8/+6
| | | | | | | | REDIS_CLOSE_ASAP flag already set. Return value of the function changed from int to void since it is not used. Fixed logging of the client scheduled to be closed.
* | client buffer handling refactoring and optimizationantirez2012-01-231-23/+47
| |
* | actually call the function to async free clients in serverCron().antirez2012-01-231-0/+3
| |
* | Implementation of the internals that make possible to terminate clients ↵antirez2012-01-234-0/+122
| | | | | | | | overcoming configured output buffer (soft and hard) limits.
* | Merge branch 'unstable' into limitsantirez2012-01-235-140/+296
|\ \ | |/
| * fixed typo in hahs function seed default value. It is no longer used but ↵antirez2012-01-221-1/+1
| | | | | | | | fixed to retain the old constant as default anyway.
| * typo in comment fixedantirez2012-01-211-1/+1
| |
| * Fix for hash table collision attack. We simply randomize hash table ↵antirez2012-01-214-4/+22
| | | | | | | | initialization value at startup time.
| * Better looking registers/stack dumpantirez2012-01-201-19/+22
| |
| * added support to dump registers on crash on Linux x32antirez2012-01-201-1/+24
| |
| * added support to dump registers on crash on Linux x64antirez2012-01-202-1/+29
| |
| * all the stack trace related functions are now in debug.c. Now Redis dumps ↵antirez2012-01-203-136/+220
| | | | | | | | registers and stack content on crash. Currently osx supported, adding Linux right now.
* | Introduced three client limit classes: normal, slave, pubsubantirez2012-01-172-0/+21
| |
* | Track the length of the client pending output buffers (still to transfer) in ↵antirez2012-01-173-1/+31
|/ | | | a new field in the client structure.
* It is now posible to flush all the previous saving points in redis.conf by ↵antirez2012-01-161-6/+10
| | | | using a save directive with a single empty string argument, like it happens for CONFIG SET save.
* Don't change the replication state if SLAVE OF is called with arguments ↵antirez2012-01-161-1/+15
| | | | specifying the same master we are already connected with. This fixes issues #290.
* Obsolete SDS_ABORT_ON_OOM removed from sds.cantirez2012-01-161-52/+3
|
* sds.c no longe pre-allocate more than 1MB of free space ahead. This fixes ↵antirez2012-01-162-1/+7
| | | | issue #252.
* added a comment on top of the zslRandomLevel() functionantirez2012-01-161-0/+4
|
* On crash print information about the current client (if any), command ↵antirez2012-01-124-4/+64
| | | | vector, and object associated to first argument assuming it is a key.
* error in comment fixedantirez2012-01-111-1/+1
|
* show GCC version in INFO output.antirez2012-01-101-0/+6
|
* version bumped to 2.9.3antirez2012-01-071-1/+1
|
* Protections against protocol desyncs, leading to infinite query buffer ↵antirez2011-12-312-6/+24
| | | | growing, due to nul-terms in specific bytes of the request or indefinitely long multi bulk or bulk count strings without newlines. This bug is related to Issue #141 as well.
* Protocol and I/O related defines moved into a separated section of redis.hantirez2011-12-311-4/+6
|