-
Notifications
You must be signed in to change notification settings - Fork 126
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
[CBRD-24606] refactoring pr_midxkey_compare() #4025
[CBRD-24606] refactoring pr_midxkey_compare() #4025
Conversation
src/object/object_primitive.c
Outdated
adv_size = pr_midxkey_element_disk_size (mem1, dom1); | ||
mem1 += adv_size; |
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.
How about below?
adv_size = pr_midxkey_element_disk_size (mem1, dom1); | |
mem1 += adv_size; | |
mem1 += pr_midxkey_element_disk_size (mem1, dom1); |
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.
I thought Optimizer would take care of that.
I thought it would be nice to have a variable to put the value in for debugging in case.
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.
I agree. Thank you.
if (dom_is_desc[0]) | ||
{ | ||
c = ((c == DB_GT) ? DB_LT : (c == DB_LT) ? DB_GT : c); | ||
} |
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.
Shouldn't it be handled inside pr_midxkey_compare?
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.
It's possible, but it's not appropriate because you need to add an agreement.
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.
I found out that this part should not be included because pr_midxkey_compare() is not used only for index sorting.
…toring_pr_midxkey_compare
http://jira.cubrid.org/browse/CBRD-24606