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

Count number of write transactions in stats #575

Open
NeonWizard opened this issue Oct 9, 2023 · 3 comments
Open

Count number of write transactions in stats #575

NeonWizard opened this issue Oct 9, 2023 · 3 comments

Comments

@NeonWizard
Copy link

Stats only seems to keep count of read transactions (Stats.TxN, Stats.OpenTxN). Stats should also keep count of write transactions.

@Elbehery
Copy link
Member

Elbehery commented Nov 8, 2023

@ahrtr shall I take this ?

@ahrtr
Copy link
Member

ahrtr commented Jan 6, 2024

bbolt only supports one RW TXN at a time, so it only makes sense to add a RWTxN to record the total number of RW TXN which have ever started since opening the db.

@Elbehery
Copy link
Member

Elbehery commented Jan 6, 2024

Yes i investigated this and found that it makes no sense to count WTx as it is always one 👍🏽

@github-actions github-actions bot added the stale label Apr 16, 2024
@ahrtr ahrtr removed the stale label May 10, 2024
@github-actions github-actions bot added the stale label Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants