Repository navigation
messages: MOSDOpReply encode and decode errorcode32_t with PGID64 fea… - #65962
SrinivasaBharath merged 3 commits into
Conversation
|
jenkins test make check |
|
jenkins test api |
| flags = head.flags; | ||
| bad_replay_version = head.reassert_version; |
There was a problem hiding this comment.
This should be fixed in another commit though?
There was a problem hiding this comment.
yes, will move it. found that while i was doing some new test with ceph-dencoder with set_features for PGID64
Also changing it to const, if we are already touching that one.. |
6e45ebc to
ddf6b79
Compare
Also changing it to const, if we are already touching that one.. |
|
jenkins test make check |
|
jenkins test docs |
rzarzynski
left a comment
There was a problem hiding this comment.
LGTM. Let's bake for a while in main before backporting.
| @@ -541,8 +541,8 @@ struct errorcode32_t { | |||
| return hostos_to_ceph_errno(code); | |||
| } | |||
|
|
|||
| inline void set_wire_to_host(code_t host_code) { | |||
| @@ -541,8 +541,8 @@ struct errorcode32_t { | |||
| return hostos_to_ceph_errno(code); | |||
| } | |||
|
|
|||
| inline void set_wire_to_host(code_t host_code) { | |||
| code = ceph_to_hostos_errno(host_code); | |||
| inline void set_wire_to_host(const code_t wire_code) { | |||
There was a problem hiding this comment.
const value parameters are a kind of anti-pattern. Let's remove that.
…tures on we used to have raw encode\decode of results when PGID64 features is on. we should use errorcode32_t os convertions using set\get wire. Fixes: https://tracker.ceph.com/issues/69814 Signed-off-by: Nitzan Mordechai <[email protected]>
Fixes: https://tracker.ceph.com/issues/69814 Signed-off-by: Nitzan Mordechai <[email protected]>
When decoding an old version of MOSDOpReplay or when the PGID64 feature is enabled, bad_replay_version is not being set, which causes inconsistent output in ceph-dencoder. To fix this, set bad_replay_version to the head reassert_version value. This ensures that if the struct is later re-encoded, the decode output will be consistent. Fixes: https://tracker.ceph.com/issues/69814 Signed-off-by: Nitzan Mordechai <[email protected]>
ddf6b79 to
6eb0dae
Compare
|
jenkins test make check arm64 |
|
jenkins test windows |
|
PR is in testing here: https://tracker.ceph.com/issues/73631 Sorry for the delay! |
…tures on
we used to have raw encode\decode of results when PGID64 features is on. we should use errorcode32_t os convertions using set\get wire.
Fixes: https://tracker.ceph.com/issues/69814
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.