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

[GAIAPLAT-1024] get_txn_id() is redundant once get_current_txn_id() is implemented #1098

Merged
merged 1 commit into from
Nov 22, 2021

Conversation

yiwen-wong
Copy link

Removed the client-only get_txn_id() method and switched all uses get_current_txn_id()

gaia_txn_id_t get_txn_id();
* Internal API for getting the begin_ts of the current txn.
*/
gaia_txn_id_t get_current_txn_id();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to straighten out the header dependencies here. It doesn't make any sense that this header is included by the db_server library, which isn't supposed to know about the db_client library, given that the implementation calls into the db_client library! I'm not even sure how this is linking, but I guess that the db_server library must have some transitive link dependency on the db_client library that isn't obvious. Regardless, it doesn't make sense for the server to include a header with an interface whose implementation it shouldn't be linking. Let's address this in a future PR.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yiwen-wong yiwen-wong merged commit ebb0bc7 into master Nov 22, 2021
@yiwen-wong yiwen-wong deleted the yiwen_txn_id_pr branch November 22, 2021 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants