-
Notifications
You must be signed in to change notification settings - Fork 374
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
Random storage-related cleanups #2287
Commits on Feb 8, 2024
-
Move the definition of storageImageCloser closer to its methods
Should not change behavior. Signed-off-by: Miloslav Trmač <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f656155 - Browse repository at this point
Copy the full SHA f656155View commit details -
Define storageImageMetadata for the JSON in Image.Metadata
This way we: - have a single type, guaranteeing the source and destination don't get out of sync - separate the JSON-encoded data, without having to worry about Marshal/Unmarshal affecting unrelated fields of the source/destination. Should not change behavior. Signed-off-by: Miloslav Trmač <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4cc225e - Browse repository at this point
Copy the full SHA 4cc225eView commit details -
Remove an unnecessary pointer in map values
First, it is unnecessary. Second, we will no longer need to worry about _allocating_ a variable to point to, or about pointing at a shared/volatile location. Signed-off-by: Miloslav Trmač <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ee3bac4 - Browse repository at this point
Copy the full SHA ee3bac4View commit details -
Should not change behavior. Signed-off-by: Miloslav Trmač <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9354d68 - Browse repository at this point
Copy the full SHA 9354d68View commit details -
Simplify setting indexToStorageID
Now that we don't need pointer values, assign directly. This means we no longer confusingly use lastLayer _both_ for the parent layer and the currently-created layer. Signed-off-by: Miloslav Trmač <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c5fd4cb - Browse repository at this point
Copy the full SHA c5fd4cbView commit details -
Fail, instead of silently continuing, if a parent layer is not set yet
That should never happen, so make sure we notice. Signed-off-by: Miloslav Trmač <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a201809 - Browse repository at this point
Copy the full SHA a201809View commit details -
Rename lastLayer to parentLayer
... now that it has that exclusive semantics. Should not change behavior. Signed-off-by: Miloslav Trmač <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 31f6eeb - Browse repository at this point
Copy the full SHA 31f6eebView commit details -
Fix a comment documenting the locking rules
We only care about concurrency within the scope of HasThreadSafePutBlob. Should not change behavior. Signed-off-by: Miloslav Trmač <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2029a3b - Browse repository at this point
Copy the full SHA 2029a3bView commit details -
Use digest.*.FromString where possible
... instead of doing the same thing manually. Should not change behavior. Signed-off-by: Miloslav Trmač <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e0e8045 - Browse repository at this point
Copy the full SHA e0e8045View commit details