Skip to content

Commit 7ea3b1c

Browse files
committed
upstream: remove unused conditionals of flushing method
Signed-off-by: Eduardo Silva <[email protected]>
1 parent 2ceec6a commit 7ea3b1c

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/flb_upstream.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,6 @@ static struct flb_upstream_conn *get_conn(struct flb_upstream *u)
187187
{
188188
struct flb_upstream_conn *conn;
189189

190-
#ifdef FLB_HAVE_FLUSH_PTHREADS
191-
pthread_mutex_lock(&u->mutex_queue);
192-
#endif
193190
/* Get the first available connection and increase the counter */
194191
conn = mk_list_entry_first(&u->av_queue,
195192
struct flb_upstream_conn, _head);
@@ -199,10 +196,6 @@ static struct flb_upstream_conn *get_conn(struct flb_upstream *u)
199196
mk_list_del(&conn->_head);
200197
mk_list_add(&conn->_head, &u->busy_queue);
201198

202-
#ifdef FLB_HAVE_FLUSH_PTHREADS
203-
pthread_mutex_unlock(&u->mutex_queue);
204-
#endif
205-
206199
return conn;
207200
}
208201

0 commit comments

Comments
 (0)