summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2019-10-01 11:13:07 +0100
committerdormando <dormando@rydia.net>2019-10-17 13:54:44 -0700
commitb24f9305669dd8514bbfe7b7479786356523e5f0 (patch)
tree052684206d940f5893c8098786a41cb727ef047c /thread.c
parent1939cf9edc0656f7b1cfab6365f313b56b07a333 (diff)
downloadmemcached-b24f9305669dd8514bbfe7b7479786356523e5f0.tar.gz
DTrace build fix
During config step just being "contented" by generating the header, there is no symbols to attach for, no chance to work as is. Changing a probe signature, on some platforms, pthread_t is an opaque type thus casting to a type large enough to hold it for all oses.
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index eaec647..40edaaa 100644
--- a/thread.c
+++ b/thread.c
@@ -580,7 +580,7 @@ void dispatch_conn_new(int sfd, enum conn_states init_state, int event_flags,
cq_push(thread->new_conn_queue, item);
- MEMCACHED_CONN_DISPATCH(sfd, thread->thread_id);
+ MEMCACHED_CONN_DISPATCH(sfd, (int64_t)thread->thread_id);
buf[0] = 'c';
if (write(thread->notify_send_fd, buf, 1) != 1) {
perror("Writing to thread notify pipe");