- 09 12月, 2014 9 次提交
-
-
由 Serghei Iakovlev 提交于
Improved getting pid
-
由 antirez 提交于
-
由 Jan-Erik Rediger 提交于
-
-
由 antirez 提交于
-
由 Serghei Iakovlev 提交于
```sh $ ~ pidof redis-server # nothing $ ~ ps aux | grep [r]edis redis 593 0.0 0.0 36900 5564 ? Ssl Dec02 1:37 /usr/bin/redis-server 127.0.0.1:6379 klay 15927 0.0 0.0 16772 6068 pts/6 S+ 13:58 0:00 redis-cli $ ~ uname -a Linux edge 3.17.4-1-ARCH #1 SMP PREEMPT Fri Nov 21 21:14:42 CET 2014 x86_64 GNU/Linux ```
-
由 Sun He 提交于
-
由 Sun He 提交于
-
由 Jan-Erik Rediger 提交于
This allows shell pipes to correctly end redis-cli. Ref #2066
-
- 05 12月, 2014 1 次提交
-
-
由 antirez 提交于
Thanks to @badboy for the help in checking the build after the fix.
-
- 04 12月, 2014 2 次提交
- 03 12月, 2014 7 次提交
-
-
由 antirez 提交于
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.
-
由 antirez 提交于
Closes issue #1935.
-
由 antirez 提交于
-
由 antirez 提交于
-
由 antirez 提交于
Ref: issue #2175
-
由 antirez 提交于
-
由 antirez 提交于
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).
-
- 02 12月, 2014 1 次提交
-
-
由 antirez 提交于
-
- 28 11月, 2014 5 次提交
-
-
由 antirez 提交于
start_server now uses return value from Tcl exec to get the server pid, however this introduces errors that depend from timing: a lot of the testing code base assumed the server to be actually up and running when server_start returns. So the old code that waits to see the pid in the log file was restored.
-
由 antirez 提交于
It's hard to run the Redis test continuously if it leaks processes on exceptions / errors.
-
由 antirez 提交于
There was no sane way to detect tests that may never end because of Redis bugs or tests bugs.
-
由 antirez 提交于
10000 completes in a too short time and may easily provide unreliable figures because of tiny duration.
-
由 Matthias Petschick 提交于
-
- 26 11月, 2014 1 次提交
-
-
由 antirez 提交于
-
- 25 11月, 2014 2 次提交
-
-
由 Matt Stancliff 提交于
This syncs lua-cmsgpack with the mattsta/lua-cmsgpack upstream. Fixes #2161
-
由 antirez 提交于
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.
-
- 24 11月, 2014 1 次提交
-
-
由 antirez 提交于
-
- 15 11月, 2014 10 次提交
-
-
由 antirez 提交于
-
由 antirez 提交于
-
由 antirez 提交于
-
由 Matt Stancliff 提交于
Basically: test to make sure we can load cmsgpack and do some sanity checks to make sure pack/unpack works properly. We also have a bonus test for circular encoding and decoding because I was curious how it worked.
-
由 Matt Stancliff 提交于
Main reasons for upgrade: - Remove a warning when building Redis - Add multi pack/unpack - Improve memory usage and use Lua allocator properly - Fix some edge case encoding/decoding bugs
-
由 Matt Stancliff 提交于
clang doesn't like "extern inline" when no definition is given right away.
-
由 Matt Stancliff 提交于
cjson calls isinf, but some Solaris versions don't have isinf even with the attempted fix we have in deps/Makefile. We can harmlessly include the Redis solarisfixes.h header to give cjson proper isinf. Note: cjson has a compile-time setting for using their own defined isinf, but the Redis definition in solarisfixes.h is more complete. Fixes antirez#1620
-
由 Matt Stancliff 提交于
The new cjson has some improvements over our current version including increased platform compatability, a new resource limit to restrict decode depth, and better invalid number handling. One minor change was required to deps/Makefile because this version of cjson doesn't export itself globally, so we added a quick little define of -DENABLE_CJSON_GLOBAL. cjson now has an optional higher performing float parsing interface, but we are not including it (g_fmt.c, dtoa.c) because it requires endianness declaration during compile time. This commit is exactly lua_cjson.c from 2.1.0 with one minor change of altering the two Lua includes for local search instead of system-wide importing.
-
由 Matt Stancliff 提交于
Two simple decode tests added mainly to check that the 'cjson' global gets registered and is usable.
-
由 Matt Stancliff 提交于
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.
-
- 12 11月, 2014 1 次提交
-
-
由 antirez 提交于
-