DCBs now added/removed without locks

This is not globally safe yet, but all other access is directly or
indirectly related to maxadmin, which is irrelevant as far as
performance testing is concerned.
This commit is contained in:
Johan Wikman
2017-02-17 09:47:40 +02:00
parent 6c3c96cb7e
commit 86b7eb622e
4 changed files with 90 additions and 16 deletions

View File

@ -317,7 +317,7 @@ static int add_fd_to_workers(int fd, uint32_t events, MXS_POLL_DATA* data)
ev.events = events;
ev.data.ptr = data;
data->thread.id = 0; // In this case, the data will appear to be on the main thread.
data->thread.id = current_thread_id; // The DCB will appear on the list of the calling thread.
int stored_errno = 0;
int rc = 0;