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

Data race in the pointer of struct *SqliteStore #1

Open
curiosport opened this issue Feb 8, 2024 · 0 comments
Open

Data race in the pointer of struct *SqliteStore #1

curiosport opened this issue Feb 8, 2024 · 0 comments

Comments

@curiosport
Copy link

Hi, I was able to verify with the -race flag, that this line:

store.MaxAge(store.Options.MaxAge)

Throws a WARNING: DATA RACE

Reflecting like a Buddha and testing like a Nazi I came to the conclusion that this line does not belong to the function New() but to the function NewSqliteStoreFromExistingPool()
It would specifically go on this line:

Please update the package by moving line 127 to line 88.

Thank you.

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

No branches or pull requests

1 participant