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

avoiding a corrupt image file when there is image.ckpt with non-zero … #9180

Merged
merged 3 commits into from
Apr 25, 2022

Commits on Apr 23, 2022

  1. avoiding a corrupt image file when there is image.ckpt with non-zero …

    …size
    
    For now, saveImage writes data to image.ckpt via an append FileOutputStream,
    when there is a non-zero size file named image.ckpt, a disaster would happen
    due to a corrupt image file. Even worse, fe only keeps the lastest image file
    and removes others.
    
    BTW, image file should be synced to disk.
    
    It is dangerous to only keep the latest image file, because an image file is
    validated when generating the next image file. Then we keep an non validated
    image file but remove validated ones. So I will issue a pr which keeps at least
    2 image file.
    dataroaring committed Apr 23, 2022
    Configuration menu
    Copy the full SHA
    3a70112 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2022

  1. Configuration menu
    Copy the full SHA
    36b6c62 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e86aefb View commit details
    Browse the repository at this point in the history