-
Notifications
You must be signed in to change notification settings - Fork 392
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
WT-13952 Move session_set_last_error out of session API and move last error from internal session to external session #11373
WT-13952 Move session_set_last_error out of session API and move last error from internal session to external session #11373
Conversation
…om/wiredtiger/wiredtiger into wt-13952-move-last-error-from-internal-session-to-external-session
Thanks for creating a pull request! Please answer the questions below by editing this comment. Type of change made in this PR
What makes this change safe?This change is low risk as the changes are refactoring the code and extending on existing code. The refactoring code does not change behaviour so it should not affect existing code, and the extension on existing code also does not change behaviour. Therefore, the python and unit tests should be enough to ensure correctness. References: Checklist before requesting a review
|
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.
LGTM
Actually I realised that the copying of errors from internal sessions to external sessions have not be done yet. Could you potentially be missing those changes? |
Fixed in this commit |
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.
Close to LGTM, i would also update the comment within __wti_schema_internal_session function, to mention that we do not clear the new flag because it follows from an external session.
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.
LGTM, please fix the redundant code for F_SET
as in my last comment.
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.
LGTM!
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.
LGTM!
Modified session_set_last_error function to outside of session API and moved last error from internal session to external session when releasing the internal session.