-
Notifications
You must be signed in to change notification settings - Fork 263
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
Why linkToDbNative must be called before linkToDb? #507
Comments
I'd add that if the call order is required and changing the public API isn't possible, the API should probably enforce the call order - once linkToDbNative is called, calls to linkToDb should probably result in an error instead of succeeding silently. |
btw. calling linkToDbNative twiece will carash beceuse previous thread is still running when dtr is called
|
also, why we need to create new thread every time linkToDbNative is called ? |
i was looking on logger code for half day and i couldn't figure out why linkToDbNative must be called before linkToDb :( |
@marian-pritsak Could you help check this issue? |
According to this comment https://github.com/Azure/sonic-swss-common/blob/master/common/logger.h#L81, why? If this is public API it should not be dependent of call order. Could this method be private or this issue should be fixed in proper way.
The text was updated successfully, but these errors were encountered: