From 752a501f681a4a692971a49ebd2d4cc389ddbd75 Mon Sep 17 00:00:00 2001 From: Cloud Wu Date: Mon, 21 Sep 2015 10:40:09 +0800 Subject: [PATCH] bugfix: remove DONTCOPY tag from type --- service-src/service_harbor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service-src/service_harbor.c b/service-src/service_harbor.c index ed05190b..70abe82b 100644 --- a/service-src/service_harbor.c +++ b/service-src/service_harbor.c @@ -313,10 +313,10 @@ forward_local_messsage(struct harbor *h, void *msg, int sz) { message_to_header((const uint32_t *)cookie, &header); uint32_t destination = header.destination; - int type = (destination >> HANDLE_REMOTE_SHIFT) | PTYPE_TAG_DONTCOPY; + int type = destination >> HANDLE_REMOTE_SHIFT; destination = (destination & HANDLE_MASK) | ((uint32_t)h->id << HANDLE_REMOTE_SHIFT); - if (skynet_send(h->ctx, header.source, destination, type, (int)header.session, (void *)msg, sz-HEADER_COOKIE_LENGTH) < 0) { + if (skynet_send(h->ctx, header.source, destination, type | PTYPE_TAG_DONTCOPY , (int)header.session, (void *)msg, sz-HEADER_COOKIE_LENGTH) < 0) { if (type != PTYPE_ERROR) { // don't need report error when type is error skynet_send(h->ctx, destination, header.source , PTYPE_ERROR, (int)header.session, NULL, 0);