From 8dd9b3b044bbe4dac5b611bcc1ff419c6ff9c766 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Mon, 18 Nov 2019 11:04:23 +0000 Subject: Note that the help string is too long and triggers compilation warning when enabling TLS (at least) but https://github.com/memcached/memcached/pull/496 seemingly will fix it. TLS feature using native API for comparison instead as on some platforms pthread_t is an opaque type. --- tls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tls.c') diff --git a/tls.c b/tls.c index 8e66a89..c440a7e 100644 --- a/tls.c +++ b/tls.c @@ -53,7 +53,7 @@ ssize_t ssl_sendmsg(conn *c, struct msghdr *msg, int flags) { // conn_worker_readd. // Currntly this connection would not be served by a different thread // than the one it's assigned. - assert(c->thread->thread_id == (unsigned long)pthread_self()); + assert(pthread_equal(c->thread->thread_id, pthread_self()) != 0); char *bp = c->ssl_wbuf; for (i = 0; i < msg->msg_iovlen; i++) { -- cgit v1.2.1