Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mds: move MDS non-core dispatch into MDSRank
...along with all the supporting parts needed. ms_verify etc is still being done in MDS. Signed-off-by: John Spray <john.spray@redhat.com>
- Loading branch information
2490a0a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, according to the comments for function bool MDSRank::_dispatch , shouldn't the function return a "true" on line 236, since the message has been put ?
2490a0a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment here is a little backwards; the point is that ms_dispatch (which directly calls this) expects a "true" to mean "I've handled this message", and returning true means we've taken away the message ref. But here, I think it shouldn't be calling put() at all, since it didn't take a reference and is disclaiming responsibility for it.
This probably hasn't caused trouble since an MDS shouldn't be getting Messages it doesn't recognize, but here's a PR changing it: #10533