Skip to content

Commit

Permalink
rpc: fix get_stats not returning the updated stats structure
Browse files Browse the repository at this point in the history
get_stats needs to return the copy of the stats structure. Not the
original value.

Signed-off-by: Amnon Heiman <[email protected]>
  • Loading branch information
amnonh authored and avikivity committed May 27, 2015
1 parent ef11234 commit bb4b155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpc/rpc.hh
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public:
stats get_stats() const {
stats res = _stats;
res.wait_reply = _outstanding.size();
return _stats;
return res;
}

stats& get_stats_internal() {
Expand Down

0 comments on commit bb4b155

Please sign in to comment.