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

fix: ensure fresh test db's aren't accidentally deleted by do_cleanup #2454

Merged
merged 1 commit into from
May 4, 2023

Commits on Apr 13, 2023

  1. fix: ensure fresh test db's aren't accidentally deleted by do_cleanup

    If the first test thread is a bit slow after it acquires the
    `DO_CLEANUP` permit, it can accidentally delete a fresh test db created
    by another thread right before that other thread has a chance to open
    its connection.
    
    This fix simply records the current timestamp _before_ we acquire the
    `DO_CLEANUP` permit and only cleans up test db's created before then.
    phlip9 committed Apr 13, 2023
    Configuration menu
    Copy the full SHA
    8a0693a View commit details
    Browse the repository at this point in the history