Forgot to add server.h in last commit

Former-commit-id: 34fa6119c9a3f1533cc3e6e5d118dc6424a70891
This commit is contained in:
VivekSainiEQ 2021-05-03 16:49:09 +00:00
parent 10a8a56890
commit 546bef8be3

View File

@ -2411,6 +2411,9 @@ struct redisServer {
uint16_t rglockSamples[s_lockContentionSamples]; uint16_t rglockSamples[s_lockContentionSamples];
unsigned ilockRingHead = 0; unsigned ilockRingHead = 0;
long long repl_backlog_config_size = 1024*1024; /* This is a hack to ignore the resizing of the replication backlog
when using it as a defacto for the client buffer */
bool FRdbSaveInProgress() const { return rdbThreadVars.fRdbThreadActive; } bool FRdbSaveInProgress() const { return rdbThreadVars.fRdbThreadActive; }
}; };
@ -2657,6 +2660,7 @@ sds getAllClientsInfoString(int type);
void rewriteClientCommandVector(client *c, int argc, ...); void rewriteClientCommandVector(client *c, int argc, ...);
void rewriteClientCommandArgument(client *c, int i, robj *newval); void rewriteClientCommandArgument(client *c, int i, robj *newval);
void replaceClientCommandVector(client *c, int argc, robj **argv); void replaceClientCommandVector(client *c, int argc, robj **argv);
unsigned long getClientReplicationBacklogSharedUsage(client *c);
unsigned long getClientOutputBufferMemoryUsage(client *c); unsigned long getClientOutputBufferMemoryUsage(client *c);
int freeClientsInAsyncFreeQueue(int iel); int freeClientsInAsyncFreeQueue(int iel);
void asyncCloseClientOnOutputBufferLimitReached(client *c); void asyncCloseClientOnOutputBufferLimitReached(client *c);