summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #2165 from sunheehnus/zipmap-readSalvatore Sanfilippo2014-12-091-3/+2
|\ | | | | zipmap.c: update comments above
| * zipmap.c: update comments aboveSun He2014-11-251-3/+2
| |
* | Merge pull request #2176 from deepakverma/redis_bench_authfixSalvatore Sanfilippo2014-12-091-28/+30
|\ \ | | | | | | redis-benchmark AUTH command to be discarded after the first send #2150
| * | replaced // comments #2150Deepak Verma2014-12-011-2/+2
| | |
| * | redis-benchmark AUTH command to be discarded after the first send #2150azure provisioned user2014-12-011-28/+30
| | |
* | | Merge pull request #2119 from sunheehnus/unstableSalvatore Sanfilippo2014-12-091-6/+6
|\ \ \ | | | | | | | | sds.c/sdscatvprintf: va_end needs to be fixed
| * | | sds.c: Correct two spelling mistakes in commentsSun He2014-11-031-2/+2
| | | |
| * | | sds.c/sdscatvprintf: set va_end to finish va_list cpySun He2014-11-021-1/+1
| | | |
| * | | sds.c: Correct some commentsSun He2014-11-021-4/+4
| | |/ | |/|
* | | Include stropts only if __sun is defined.antirez2014-12-091-0/+2
| | |
* | | Merge pull request #2177 from badboy/solaris-ioctl-warn-fixSalvatore Sanfilippo2014-12-091-0/+1
|\ \ \ | | | | | | | | Fix implicit declaration of ioctl on Solaris
| * | | Fix implicit declaration of ioctl on SolarisJan-Erik Rediger2014-12-011-0/+1
| | | |
* | | | Merge pull request #2179 from sunheehnus/bitops-readSalvatore Sanfilippo2014-12-091-9/+21
|\ \ \ \ | | | | | | | | | | bitops.c/redisPopcount: optimization in loop
| * | | | bitops.c/bitopCommand: skip short minlen for FAST PATHSun He2014-12-031-1/+1
| | | | |
| * | | | bitops.c/redisPopcount: little optimization in loopSun He2014-12-021-8/+20
| | |/ / | |/| |
* | | | Merge pull request #2189 from jbergstroem/glibc_220_default_warnSalvatore Sanfilippo2014-12-091-0/+1
|\ \ \ \ | | | | | | | | | | Silence _BSD_SOURCE warnings in glibc 2.20 and forward
| * | | | Silence _BSD_SOURCE warnings in glibc 2.20 and forwardJohan Bergström2014-12-051-0/+1
| | | | | | | | | | | | | | | | | | | | See https://sourceware.org/glibc/wiki/Release/2.20#Packaging_Changes
* | | | | Merge pull request #2197 from sunheehnus/sparklineSalvatore Sanfilippo2014-12-092-4/+3
|\ \ \ \ \ | | | | | | | | | | | | sparkline.c: mov label-ini into the AddSample Function
| * | | | | sparkline.c: AddSample skip Empty labelSun He2014-12-081-1/+1
| | | | | |
| * | | | | sparkline.c: mov label-ini into the AddSample FunctionSun He2014-12-082-4/+3
| | |/ / / | |/| | |
* | | | | Only ignore sigpipe in interactive modeJan-Erik Rediger2014-12-091-2/+3
| |/ / / |/| | | | | | | | | | | | | | | | | | | This allows shell pipes to correctly end redis-cli. Ref #2066
* | | | Check that tcp-backlog is matched by /proc/sys/net/core/somaxconn.antirez2014-12-042-0/+19
| | | |
* | | | Network bandwidth tracking + refactoring.antirez2014-12-034-24/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Track bandwidth used by clients and replication (but diskless replication is not tracked since the actual transfer happens in the child process). This includes a refactoring that makes tracking new instantaneous metrics simpler.
* | | | Don't show the ASCII logo if syslog is enabled.antirez2014-12-031-9/+21
| | | | | | | | | | | | | | | | Closes issue #1935.
* | | | Handle infinite explicitly in createStringObjectFromLongLong().antirez2014-12-031-8/+20
| | | |
* | | | Use exp format and more precision output for ZSCAN.antirez2014-12-025-15/+21
| | | | | | | | | | | | | | | | Ref: issue #2175
* | | | Over 80 chars comment trimmed in pfcountCommand().antirez2014-12-021-1/+1
| | | |
* | | | Mark PFCOUNT as read-only, even if not true.antirez2014-12-021-1/+1
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PFCOUNT is technically speaking a write command, since the cached value of the HLL is exposed in the data structure (design error, mea culpa), and can be modified by PFCOUNT. However if we flag PFCOUNT as "w", read only slaves can't execute the command, which is a problem since there are environments where slaves are used to scale PFCOUNT reads. Nor it is possible to just prevent PFCOUNT to modify the data structure in slaves, since without the cache we lose too much efficiency. So while this commit allows slaves to create a temporary inconsistency (the strings representing the HLLs in the master and slave can be different in certain moments) it is actually harmless. In the long run this should be probably fixed by turning the HLL into a more opaque representation, for example by storing the cached value in the part of the string which is not exposed (this should be possible with SDS strings).
* | | Cluster PUBLISH message: fix totlen count.antirez2014-11-282-3/+7
| | | | | | | | | | | | | | | | | | bulk_data field size was not removed from the count. It is not possible to declare it simply as 'char bulk_data[]' since the structure is nested into another structure.
* | | redis-benchmark: default num of requests is now 100000.antirez2014-11-281-2/+2
| | | | | | | | | | | | | | | 10000 completes in a too short time and may easily provide unreliable figures because of tiny duration.
* | | fix benchmark memleak in loop modeMatthias Petschick2014-11-281-1/+1
| | |
* | | Fix DEBUG OBJECT lru field to report seconds.antirez2014-11-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Because of (not so) recent Redis changes, now the LRU internally reported unit is milliseconds, not seconds, but the DEBUG OBJECT output was still claiming seconds while providing milliseconds. However OBJECT IDLETIME was working as expected, which is the correct API to use.
* | | Document redis-cli --stat in --help output.antirez2014-11-251-0/+1
| | |
* | | Avoid valgrind memory leak false positive in processInlineBuffer().antirez2014-11-251-2/+4
| |/ |/| | | | | | | | | | | | | | | | | | | zmalloc(0) cauesd to actually trigger a non-zero allocation since with standard libc malloc we have our own zmalloc header for memory tracking, but at the same time the returned pointer is at the end of the block and not in the middle. This triggers a false positive when testing with valgrind. When the inline protocol args count is 0, we now avoid reallocating c->argv, preventing the issue to happen.
* | Fix non-linux builds error introduced with THP checks.antirez2014-11-142-2/+2
| |
* | Merge pull request #1662 from mattsta/lua-add-bitopsSalvatore Sanfilippo2014-11-141-0/+2
|\ \ | | | | | | Lua: Add bitop
| * | Lua: Add bitopMatt Stancliff2014-10-091-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A few people have written custom C commands because bit manipulation isn't exposed through Lua. Let's give them Mike Pall's bitop. This adds bitop 1.0.2 (2012-05-08) from http://bitop.luajit.org/ bitop is imported as "bit" into the global namespace. New Lua commands: bit.tobit, bit.tohex, bit.bnot, bit.band, bit.bor, bit.bxor, bit.lshift, bit.rshift, bit.arshift, bit.rol, bit.ror, bit.bswap Verification of working (the asserts would abort on error, so (nil) is correct): 127.0.0.1:6379> eval "assert(bit.tobit(1) == 1); assert(bit.band(1) == 1); assert(bit.bxor(1,2) == 3); assert(bit.bor(1,2,4,8,16,32,64,128) == 255)" 0 (nil) 127.0.0.1:6379> eval 'assert(0x7fffffff == 2147483647, "broken hex literals"); assert(0xffffffff == -1 or 0xffffffff == 2^32-1, "broken hex literals"); assert(tostring(-1) == "-1", "broken tostring()"); assert(tostring(0xffffffff) == "-1" or tostring(0xffffffff) == "4294967295", "broken tostring()")' 0 (nil) Tests also integrated into the scripting tests and can be run with: ./runtest --single unit/scripting Tests are excerpted from `bittest.lua` included in the bitop distribution.
* | | THP detection for LATENCY DOCTOR.antirez2014-11-121-2/+13
| | |
* | | Check THP support at startup and warn about it.antirez2014-11-122-2/+7
| | |
* | | THP detection / reporting functions added.antirez2014-11-123-6/+45
| | |
* | | Diskless SYNC: fix RDB EOF detection.antirez2014-11-113-4/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RDB EOF detection was relying on the final part of the RDB transfer to be a magic 40 bytes EOF marker. However as the slave is put online immediately, and because of sockets timeouts, the replication stream is actually contiguous with the RDB file. This means that to detect the EOF correctly we should either: 1) Scan all the stream searching for the mark. Sucks CPU-wise. 2) Start to send the replication stream only after an acknowledge. 3) Implement a proper chunked encoding. For now solution "2" was picked, so the master does not start to send ASAP the stream of commands in the case of diskless replication. We wait for the first REPLCONF ACK command from the slave, that certifies us that the slave correctly loaded the RDB file and is ready to get more data.
* | | Disconnect timedout slave: regression introduced with diskless repl.antirez2014-11-111-2/+3
| | |
* | | Merge pull request #2096 from mattsta/cluster-ipv6Salvatore Sanfilippo2014-10-312-6/+8
|\ \ \ | | | | | | | | Enable Cluster IPv6 Support
| * | | Parse cluster state file in IPv6 compatible wayMatt Stancliff2014-10-291-1/+1
| | | | | | | | | | | | | | | | We need to pick the port based on the _last_ colon, not the first one.
| * | | Fix redis-trib.rb IP:Port disassembly for IPv6Matt Stancliff2014-10-291-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | IP format is now any of: - 127.0.0.1:6379 - ::1:6379
* | | | Merge pull request #2110 from mattsta/more-outbound-bind-fixesSalvatore Sanfilippo2014-10-312-3/+4
|\ \ \ \ | | | | | | | | | | Networking: add more outbound IP binding fixes
| * | | | Networking: add more outbound IP binding fixesMatt Stancliff2014-10-292-3/+4
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Same as the original bind fixes (we just missed these the first time around). This helps Redis not automatically send connections from the first IP on an interface if we are bound to a specific IP address (e.g. with multiple IP aliases on one interface, you want to send from _your_ IP, not from the first IP on the interface).
* | | | redis-cli: ignore SIGPIPE network errorsMatt Stancliff2014-10-291-1/+4
|/ / / | | | | | | | | | Closes #2066
* | | Merge branch 'memsync' into unstableantirez2014-10-2912-134/+859
|\ \ \ | |_|/ |/| |
| * | Diskless replication: missing listRewind() added.memsyncantirez2014-10-291-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This caused BGSAVE to be triggered a second time without any need when we switch from socket to disk target via the command CONFIG SET repl-diskless-sync no and there is already a slave waiting for the BGSAVE to start. Also comments clarified about what is happening.