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

oauth2_txt, oauth2_txn.stash #4

Open
qkrgksqkr opened this issue Feb 17, 2021 · 1 comment
Open

oauth2_txt, oauth2_txn.stash #4

qkrgksqkr opened this issue Feb 17, 2021 · 1 comment

Comments

@qkrgksqkr
Copy link

qkrgksqkr commented Feb 17, 2021

What for collection named 'oauth2_txn' and 'oauth2_txn.stash??
Documents in this collection remains forever, no expire date.
is it ok delete this docuemt in 'oauth2_txn' and 'oauth2_txn.stash collection?

@qkrgksqkr qkrgksqkr reopened this Feb 17, 2021
@qkrgksqkr qkrgksqkr changed the title test oauth2_txt, oauth2_txn.stash Feb 17, 2021
@nzin4x
Copy link

nzin4x commented Jan 6, 2022

mongo package of oauth2 is using multi-doc transaction to store data into multiple collection at once.
because below version 4 of mongo doesn't support transaction.

https://pkg.go.dev/labix.org/v2/mgo/txn#Runner

to use txn package by mongo package
it should define transaction collection named oauth2_txn

and txn package is making .stash collection itself.

so oauth2 package is making 2 collections named oauth2_txn, oauth2_txn.stash.
but anyway oauth2 doesn't know 2 collections is going to create or not.

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

2 participants