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

PBM-1058: fix phys backups on datadirs with tailing / #802

Merged
merged 1 commit into from Mar 16, 2023

Commits on Mar 14, 2023

  1. PBM-1058: fix phys backups on datadirs with tailing /

    Phys backup while trimming datadir from the file path always added
    a slash to the trim prefix. In case datadir was set with a tailing
    slash it led to a double slash and datadir wasn't trimmed at all
    (`Trimprefix("/data/db/file1", "/data/db//")`). Therefore in the
    backup's meta such files contain datadir and the restore would put them
    in a subdirectory inside datadir, "/data/db/data/db/file1" instead of
    "/data/db/file1".
    
    This change fixes it.
    dAdAbird committed Mar 14, 2023
    Configuration menu
    Copy the full SHA
    767b20c View commit details
    Browse the repository at this point in the history