Code Review
/
ric-plt
/
lib
/
rmr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
doc(log): Make err/cri/wrn tags consistent
[ric-plt/lib/rmr.git]
/
src
/
rmr
/
nng
/
src
/
mt_call_nng_static.c
diff --git
a/src/rmr/nng/src/mt_call_nng_static.c
b/src/rmr/nng/src/mt_call_nng_static.c
index
2ef21f6
..
325b313
100644
(file)
--- a/
src/rmr/nng/src/mt_call_nng_static.c
+++ b/
src/rmr/nng/src/mt_call_nng_static.c
@@
-91,13
+91,8
@@
static void* mt_receive( void* vctx ) {
queue_normal( ctx, mbuf );
} else {
chute = &ctx->chutes[call_id];
queue_normal( ctx, mbuf );
} else {
chute = &ctx->chutes[call_id];
- if( memcmp( mbuf->xaction, chute->expect, RMR_MAX_XID ) == 0 ) { // match
- chute->mbuf = mbuf;
- sem_post( &chute->barrier );
- } else {
- rmr_free_msg( mbuf );
- mbuf = NULL;
- }
+ chute->mbuf = mbuf;
+ sem_post( &chute->barrier ); // the call function can vet xaction id in their own thread
}
}
}
}
}
}