Merge branch 'unstable' of github.com:/antirez/redis into unstable
This commit is contained in:
commit
022f09447b
@ -266,7 +266,7 @@ void bioKillThreads(void) {
|
||||
int err, j;
|
||||
|
||||
for (j = 0; j < BIO_NUM_OPS; j++) {
|
||||
if (pthread_cancel(bio_threads[j]) == 0) {
|
||||
if (bio_threads[j] && pthread_cancel(bio_threads[j]) == 0) {
|
||||
if ((err = pthread_join(bio_threads[j],NULL)) != 0) {
|
||||
serverLog(LL_WARNING,
|
||||
"Bio thread for job type #%d can be joined: %s",
|
||||
|
@ -4037,7 +4037,7 @@ sds genRedisInfoString(const char *section) {
|
||||
size_t zmalloc_used = zmalloc_used_memory();
|
||||
size_t total_system_mem = server.system_memory_size;
|
||||
const char *evict_policy = evictPolicyToString();
|
||||
long long memory_lua = (long long)lua_gc(server.lua,LUA_GCCOUNT,0)*1024;
|
||||
long long memory_lua = server.lua ? (long long)lua_gc(server.lua,LUA_GCCOUNT,0)*1024 : 0;
|
||||
struct redisMemOverhead *mh = getMemoryOverheadData();
|
||||
|
||||
/* Peak memory is updated from time to time by serverCron() so it
|
||||
|
@ -414,7 +414,7 @@ start_server {tags {"stream"} overrides {appendonly yes stream-node-max-entries
|
||||
}
|
||||
}
|
||||
|
||||
start_server {tags {"xsetid"}} {
|
||||
start_server {tags {"stream xsetid"}} {
|
||||
test {XADD can CREATE an empty stream} {
|
||||
r XADD mystream MAXLEN 0 * a b
|
||||
assert {[dict get [r xinfo stream mystream] length] == 0}
|
||||
|
Loading…
x
Reference in New Issue
Block a user