projects
/
invirt/third/libt4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
b260956
)
Reduced verbosity
author
Peter Iannucci
<iannucci@mit.edu>
Fri, 11 Oct 2013 17:04:13 +0000
(13:04 -0400)
committer
Peter Iannucci
<iannucci@mit.edu>
Fri, 11 Oct 2013 17:04:13 +0000
(13:04 -0400)
rpc/rpc.cc
patch
|
blob
|
history
diff --git
a/rpc/rpc.cc
b/rpc/rpc.cc
index
c417f40
..
471a5da
100644
(file)
--- a/
rpc/rpc.cc
+++ b/
rpc/rpc.cc
@@
-341,7
+341,7
@@
rpcs::rpcs(in_port_t p1, size_t count)
{
set_rand_seed();
nonce_ = (unsigned int)random();
{
set_rand_seed();
nonce_ = (unsigned int)random();
- IF_LEVEL(0) LOG("created with nonce " << nonce_);
+ IF_LEVEL(2) LOG("created with nonce " << nonce_);
reg(rpc_const::bind, &rpcs::rpcbind, this);
dispatchpool_ = unique_ptr<ThrPool>(new ThrPool(6, false));
reg(rpc_const::bind, &rpcs::rpcbind, this);
dispatchpool_ = unique_ptr<ThrPool>(new ThrPool(6, false));
@@
-479,9
+479,8
@@
void rpcs::dispatch(shared_ptr<connection> c, const string & buf) {
switch (stat) {
case NEW: // new request
switch (stat) {
case NEW: // new request
- if (counting_){
+ if (counting_)
updatestat(proc);
updatestat(proc);
- }
rh.ret = (*f)(req, rep);
if (rh.ret == rpc_const::unmarshal_args_failure) {
rh.ret = (*f)(req, rep);
if (rh.ret == rpc_const::unmarshal_args_failure) {
@@
-612,7
+611,7
@@
void rpcs::free_reply_window(void) {
}
int rpcs::rpcbind(unsigned int &r, int) {
}
int rpcs::rpcbind(unsigned int &r, int) {
- IF_LEVEL(0) LOG("called return nonce " << nonce_);
+ IF_LEVEL(2) LOG("called return nonce " << nonce_);
r = nonce_;
return 0;
}
r = nonce_;
return 0;
}