-
Notifications
You must be signed in to change notification settings - Fork 825
Take string view arguments in cache processor #12147
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
base: master
Are you sure you want to change the base?
Take string view arguments in cache processor #12147
Conversation
I don't think this PR changes layout of any disk-stored structs. |
Yes, I agree with you. This PR changes the field of I found this branch has conflicts from with changes from Cleanup: Remove unused args from open_read and open_write by masaori335 · Pull Request #12181 · apache/trafficserver. Can I foward this branch to f7e77f9? |
We're going to do "squash & merge" to merge this PR, so forwarding this branch to |
Oops, I found I created the https://github.com/hnakamur/trafficserver/tree/take_string_view_arguments_in_cache_processor2 from the wrong branch. |
@@ -281,8 +281,7 @@ struct CacheVC : public CacheVConnection { | |||
int fragment; | |||
int scan_msec_delay; | |||
CacheVC *write_vc; | |||
char *hostname; | |||
int host_len; | |||
std::string_view hostname; |
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.
@cmcfarlen This is part of "Region C". Can we change this? IIRC, I broke cache compatibility by changing type in this region.
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.
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.
Yes, you are correct about the pin_in_cache
issue. Coverity reports type issues on that pin_in_cache
. Two different commits went in to change its type to address the coverity warning (not just your commit, @masaori335 ). When that got changed to a 64 bit type rather than a 32 bit one, it resulted in cache incompatibility. Upgrading through that change would result in many warnings about cache inconsistency.
@masaori335 is correct to be leary of this change. Maybe it would be fine? What are the underlying types of a string_view - if they are char*
and int
anyway, maybe it won't cause issues? But we would want to upgrade a box with cached items to test this and verify there are not cache inconsistency warnings.
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.
Let me check this doesn't break cache compatibility.
Thank you. I'll revert the change in
The merge commit f7e77f9 contains the changes in other branches which were merged to master. However the diff betwen master and f7e77f9 master...hnakamur:f7e77f9 contains only changes in this branch. So I think it should be OK to forward this branch to f7e77f9. |
No description provided.