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

WT-12901:txn timestamp's log improve #10526

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

y123456yz
Copy link
Contributor

The set_timestamp time parameter is hexadecimal:
testutil_check(conn->set_timestamp(conn, "oldest_timestamp=10, stable_timestamp=10"));

the log info as following(be hexadecimal):
[1714312199:96018][105276:0x7fa976f4f800], WT_CONNECTION.__conn_set_timestamp: [WT_VERB_TIMESTAMP][DEBUG_1]: Timestamp (0, 16): Updated global oldest timestamp
[1714312199:96023][105276:0x7fa976f4f800], WT_CONNECTION.__conn_set_timestamp: [WT_VERB_TIMESTAMP][DEBUG_1]: Timestamp (0, 16): Updated global stable timestamp
[1714312199:96034][105276:0x7fa976f4f800], WT_CONNECTION.__conn_set_timestamp: [WT_VERB_TIMESTAMP][DEBUG_1]: Timestamp (0, 16): Updated pinned timestamp
[1714312199:96040][105276:0x7fa976f4f800], WT_CONNECTION.__conn_set_timestamp: [WT_VERB_API][DEBUG_1]: CALL: WT_CONNECTION:__conn_set_timestamp

The set_timestamp time parameter is hexadecimal, so it is recommended that timestamp output also be hexadecimal, so that it is consistent.

The first time I saw the log, I thought the log output was wrong because I mistakenly thought the set_timestamp parameter was decimal.

Copy link

Hi @y123456yz, thank you for your submission!
Please make sure to sign our Contributor Agreement (if you haven't already) and provide us with editor permissions on your branch. Instructions on how do that can be found here.

@y123456yz y123456yz changed the title txn timestamp's log improve WT-12901:txn timestamp's log improve Apr 28, 2024
@y123456yz
Copy link
Contributor Author

WT-12901

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant