mirror of
https://github.com/fluencelabs/redis
synced 2025-05-03 14:32:14 +00:00
Fixed a few broken stuff introduced while merging issue #327 related code in 2.4
This commit is contained in:
parent
31f9f987ac
commit
b3a86b8209
@ -1564,9 +1564,9 @@ int freeMemoryIfNeeded(void) {
|
||||
mem_used -= obuf_bytes;
|
||||
}
|
||||
}
|
||||
if (server.aof_state != REDIS_AOF_OFF) {
|
||||
mem_used -= sdslen(server.aof_buf);
|
||||
mem_used -= sdslen(server.aof_rewrite_buf);
|
||||
if (server.appendonly) {
|
||||
mem_used -= sdslen(server.aofbuf);
|
||||
mem_used -= sdslen(server.bgrewritebuf);
|
||||
}
|
||||
|
||||
/* Check if we are over the memory limit. */
|
||||
|
@ -716,6 +716,7 @@ void getClientsMaxBuffers(unsigned long *longest_output_list,
|
||||
sds getClientInfoString(redisClient *client);
|
||||
sds getAllClientsInfoString(void);
|
||||
void rewriteClientCommandVector(redisClient *c, int argc, ...);
|
||||
unsigned long getClientOutputBufferMemoryUsage(redisClient *c);
|
||||
void flushSlavesOutputBuffers(void);
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
Loading…
x
Reference in New Issue
Block a user