Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion db/sqlinterfaces.c
Original file line number Diff line number Diff line change
Expand Up @@ -6786,7 +6786,8 @@ void init_lru_evbuffer(struct sqlclntstate *clnt)
void add_lru_evbuffer(struct sqlclntstate *clnt)
{
Pthread_mutex_lock(&lru_evbuffers_mtx);
if (in_client_trans(clnt)) {
if (in_client_trans(clnt) || clnt->admin) {
// admin connection don't count towards active_appsocks
TAILQ_NEXT(clnt, lru_entry) = clnt; /* Point to self -> not in lru_evbuffers list */
} else if (TAILQ_NEXT(clnt, lru_entry) == clnt) {
TAILQ_INSERT_HEAD(&lru_evbuffers, clnt, lru_entry);
Expand Down