Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include/encoding: fix compat version error message #19660

Merged
merged 1 commit into from Jan 5, 2018
Merged

Conversation

cfanz
Copy link
Contributor

@cfanz cfanz commented Dec 23, 2017

The compatv parameter can not behave as expected.
Using std::to_string instead of a macro pound sign.
Signed-off-by: Xinying Song songxinying@cloudin.cn

The compatv parameter can not behave as expected.
Using std::to_string instead of a macro pound sign.
Signed-off-by: Xinying Song <songxinying@cloudin.cn>
@cfanz
Copy link
Contributor Author

cfanz commented Dec 23, 2017

When an error is thrown, the old way will print message like:
error: buffer::malformed_input: void rgw_bucket_dir_entry::decode(ceph::buffer::list::iterator&) no longer understand old encoding version 8 < struct_compat
the struct_compat is not substituted with the number decoded from buffer as expected. This pr fix that problem.

@tchaikov tchaikov merged commit 16a1a02 into ceph:master Jan 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants