Fix a few issues from the merge
Former-commit-id: aa274960fff095c4c3cd570cdbaaabb9ca005651
This commit is contained in:
parent
e601bc1169
commit
6371f6e3e4
@ -2146,8 +2146,10 @@ void beforeSleepLite(struct aeEventLoop *eventLoop)
|
|||||||
/* Handle writes with pending output buffers. */
|
/* Handle writes with pending output buffers. */
|
||||||
handleClientsWithPendingWrites(iel);
|
handleClientsWithPendingWrites(iel);
|
||||||
|
|
||||||
|
aeAcquireLock();
|
||||||
/* Close clients that need to be closed asynchronous */
|
/* Close clients that need to be closed asynchronous */
|
||||||
freeClientsInAsyncFreeQueue(iel);
|
freeClientsInAsyncFreeQueue(iel);
|
||||||
|
aeReleaseLock();
|
||||||
|
|
||||||
/* Before we are going to sleep, let the threads access the dataset by
|
/* Before we are going to sleep, let the threads access the dataset by
|
||||||
* releasing the GIL. Redis main thread will not touch anything at this
|
* releasing the GIL. Redis main thread will not touch anything at this
|
||||||
|
@ -151,8 +151,6 @@ public:
|
|||||||
#define CONFIG_DEFAULT_TCP_BACKLOG 511 /* TCP listen backlog. */
|
#define CONFIG_DEFAULT_TCP_BACKLOG 511 /* TCP listen backlog. */
|
||||||
#define CONFIG_DEFAULT_CLIENT_TIMEOUT 0 /* Default client timeout: infinite */
|
#define CONFIG_DEFAULT_CLIENT_TIMEOUT 0 /* Default client timeout: infinite */
|
||||||
#define CONFIG_DEFAULT_DBNUM 16
|
#define CONFIG_DEFAULT_DBNUM 16
|
||||||
#define CONFIG_DEFAULT_IO_THREADS_NUM 1 /* Single threaded by default */
|
|
||||||
#define CONFIG_DEFAULT_IO_THREADS_DO_READS 0 /* Read + parse from threads? */
|
|
||||||
#define CONFIG_MAX_LINE 1024
|
#define CONFIG_MAX_LINE 1024
|
||||||
#define CRON_DBS_PER_CALL 16
|
#define CRON_DBS_PER_CALL 16
|
||||||
#define NET_MAX_WRITES_PER_EVENT (1024*64)
|
#define NET_MAX_WRITES_PER_EVENT (1024*64)
|
||||||
@ -1765,7 +1763,6 @@ int writeToClient(int fd, client *c, int handler_installed);
|
|||||||
void linkClient(client *c);
|
void linkClient(client *c);
|
||||||
void protectClient(client *c);
|
void protectClient(client *c);
|
||||||
void unprotectClient(client *c);
|
void unprotectClient(client *c);
|
||||||
void initThreadedIO(void);
|
|
||||||
|
|
||||||
// Special Thread-safe addReply() commands for posting messages to clients from a different thread
|
// Special Thread-safe addReply() commands for posting messages to clients from a different thread
|
||||||
void addReplyAsync(client *c, robj_roptr obj);
|
void addReplyAsync(client *c, robj_roptr obj);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user