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

ldb_invariant() doesn't format the given string using the rest of the parameters #210

Open
medvied opened this issue Oct 21, 2023 · 0 comments

Comments

@medvied
Copy link
Contributor

medvied commented Oct 21, 2023

Example:

The code:

630         ldb_invariant(max_offset == FirstOffsetNumber,                                                            
631                       "ERROR: Blockmap max_offset is %d but was supposed to be %d",                               
632                       max_offset,                                                                                 
633                       FirstOffsetNumber);  

The error messages:

WARNING:  LanternDB invariant violation: ERROR: Blockmap max_offset is %d but was supposed to be %d
ERROR:  LanternDB invariant violation: ERROR: Blockmap max_offset is %d but was supposed to be %d. Please restart your DB session and report this error

The values of max_offset and FirstOffsetNumber are not present in the error messages.

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