summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Remove client->buf from output buffers in client info.argv-accountingantirez2018-10-021-1/+1
| | | | | | Technically it is correct that we count that, but the sense of the field is more the *overhead* of the client compared to the baseline. So we want to see idle clients at 0.
* client argv mem reporting: less precise and expansive.antirez2018-10-021-19/+9
| | | | | | | Avoid doing efforts to include fragmentation and just count the bulk size: enough to give an hint about clients doing huge argv allocations (the gist of the original patch was such detection), without risks of performances impacts.
* memory reporting of clients argvOran Agra2018-10-025-6/+48
| | | | | | | track and report memory used by clients argv. this is very usaful in case clients started sending a command and didn't complete it. in which case the first args of the command are already trimmed from the query buffer.
* Merge pull request #5397 from bmerry/fix-bad-zmalloc-sizeSalvatore Sanfilippo2018-10-011-1/+1
|\ | | | | Fix invalid use of sdsZmallocSize on an embedded string
| * Fix invalid use of sdsZmallocSize on an embedded stringBruce Merry2018-09-301-1/+1
| | | | | | | | | | | | sdsZmallocSize assumes a dynamically allocated SDS. When given a string object created by createEmbeddedStringObject, it calls zmalloc_size on a pointer that isn't the one returned by zmalloc
* | Merge pull request #5398 from bmerry/fix-zrealloc-accountingSalvatore Sanfilippo2018-10-013-2/+24
|\ \ | | | | | | Fix incorrect memory usage accounting in zrealloc
| * | Fix incorrect memory usage accounting in zreallocBruce Merry2018-09-303-2/+24
| |/ | | | | | | | | | | | | | | | | | | | | When HAVE_MALLOC_SIZE is false, each call to zrealloc causes used_memory to increase by PREFIX_SIZE more than it should, due to mis-matched accounting between the original zmalloc (which includes PREFIX size in its increment) and zrealloc (which misses it from its decrement). I've also supplied a command-line test to easily demonstrate the problem. It's not wired into the test framework, because I don't know TCL so I'm not sure how to automate it.
* | Merge pull request #5396 from oranagra/cmdstats_execSalvatore Sanfilippo2018-10-012-2/+63
|\ \ | | | | | | fix #5024 - commandstats for multi-exec were logged as EXEC.
| * | fix #5024 - commandstats for multi-exec were logged as EXEC.Oran Agra2018-09-302-2/+63
| | | | | | | | | | | | | | | this was broken a while back by ba9154d7e7bf959b002533384319a1e90545447b the purpose of which was to fix commandstats for GEOADD
* | | Merge pull request #5400 from halaei/fix-dict-get-on-not-foundSalvatore Sanfilippo2018-10-011-1/+1
|\ \ \ | | | | | | | | fix dict get on not found
| * | | fix dict get on not foundHamid Alaei2018-10-011-1/+1
| |/ /
* | | Fix XINFO comment for consistency.antirez2018-10-011-1/+1
|/ /
* | Try to avoid issues with GCC pragmas and older compilers.antirez2018-09-281-4/+7
| | | | | | | | See issue #5394.
* | Modules: hellodict example WIP #3: KEYRANGE.antirez2018-09-271-0/+40
| |
* | Modules: Modules: dictionary API WIP #13: Compare API exported.antirez2018-09-272-0/+6
| |
* | Modules: Modules: dictionary API WIP #12: DictCompare API.antirez2018-09-271-0/+8
| |
* | Modules: Modules: dictionary API WIP #11: DictCompareC API.antirez2018-09-271-0/+18
| |
* | Modules: hellodict example WIP #1: GET command.antirez2018-09-271-0/+18
| |
* | Modules: hellodict example WIP #1: SET command.antirez2018-09-261-0/+74
| |
* | Modules: remove useless defines in hellotimer.cantirez2018-09-262-4/+6
| |
* | Modules: fix top comment of hellotimer.cantirez2018-09-261-1/+1
| |
* | Merge branch 'unstable' of github.com:/antirez/redis into unstableantirez2018-09-262-2/+2
|\ \ | |/
| * Merge pull request #5373 from gkorland/patch-5Salvatore Sanfilippo2018-09-251-1/+1
| |\ | | | | | | add missing argument to function doc
| | * add missing argument to function docGuy Korland2018-09-211-1/+1
| | |
| * | Merge pull request #5377 from Chupaka/patch-1Salvatore Sanfilippo2018-09-251-1/+1
| |\ \ | | | | | | | | Fix typo in comment
| | * | Fix typo in commentPavel Skuratovich2018-09-241-1/+1
| | |/
* | | Modules: dictionary API WIP #10: export API to modules.antirez2018-09-262-0/+60
|/ /
* | Modules: dictionary API WIP #9: iterator returning string object.antirez2018-09-251-6/+23
| |
* | Modules: dictionary API WIP #8: Iterator next/prev.antirez2018-09-251-0/+42
| |
* | Modules: dictionary API WIP #7: don't store the context.antirez2018-09-251-8/+7
| | | | | | | | | | | | | | | | | | | | Storing the context is useless, because we can't really reuse that later. For instance in the API RM_DictNext() that returns a RedisModuleString for the next key iterated, the user should pass the new context, because we may run the keys of the dictionary in a different context of the one where the dictionary was created. Also the dictionary may be created without a context, but we may still demand automatic memory management for the returned strings while iterating.
* | Modules: dictionary API WIP #6: implement automatic memory management.antirez2018-09-251-7/+21
| |
* | Modules: dictionary API work in progress #5: rename API for consistency.antirez2018-09-251-25/+25
| | | | | | | | | | | | By using the "C" suffix for functions getting pointer/len, we can do the same in the future for other modules APIs that need a variant with pointer/len and that are now accepting a RedisModuleString.
* | Modules: change RedisModuleString API to allow NULL context.antirez2018-09-241-12/+33
| | | | | | | | | | | | | | | | | | The burden of having to always create RedisModuleString objects within a module context was too much, especially now that we have threaded operations and modules are doing more interesting things. The context in the string API is currently only used for automatic memory managemnet, so now the API was modified so that the user can opt-out this feature by passing a NULL context.
* | Modules: dictionary API work in progress #4: reseek API.antirez2018-09-241-6/+25
| |
* | Modules: dictionary API work in progress #3: Iterator creation.antirez2018-09-241-1/+41
| |
* | Modules: dictionary API work in progress #2: Del API.antirez2018-09-241-2/+17
| |
* | Modules: dictionary API work in progress #1.antirez2018-09-212-1/+95
|/
* Module cluster flags: use RM_SetClusterFlags() in the example.antirez2018-09-192-0/+11
|
* Module cluster flags: add RM_SetClusterFlags() API.cluster-api-improvementsantirez2018-09-193-0/+33
|
* Module cluster flags: add hooks for NO_FAILOVER flag.antirez2018-09-191-2/+4
|
* Module cluster flags: add hooks for NO_REDIRECTION flag.antirez2018-09-193-4/+14
|
* Module cluster flags: initial vars / defines added.antirez2018-09-195-0/+20
|
* Modules: rename the reused static client to something more general.antirez2018-09-181-8/+10
|
* Modules: associate a fake client to timer context callback.antirez2018-09-181-0/+2
|
* Modules: associate a fake client to cluster message context callback.antirez2018-09-181-0/+2
| | | | Fixes #5354.
* Cluster Manager: clusterManagerFixOpenSlot now counts node's keys in slotartix2018-09-171-1/+20
| | | | if node is neither migrating nor importing.
* Merge branch 'unstable' of github.com:/antirez/redis into unstableantirez2018-09-172-2/+2
|\
| * Merge pull request #5348 from gkorland/patch-2Salvatore Sanfilippo2018-09-171-1/+1
| |\ | | | | | | No need to return "OK"
| | * No need to return "OK" Guy Korland2018-09-131-1/+1
| | | | | | | | | No need to return "+OK" in this case since the result is an Array of all the nodes
| * | Merge pull request #5352 from gkorland/patch-3Salvatore Sanfilippo2018-09-171-1/+1
| |\ \ | | | | | | | | typo fix