-
Notifications
You must be signed in to change notification settings - Fork 362
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
Reorganize storageImageDestination to prioritize the private …WithOptions methods #1468
Commits on Feb 15, 2022
-
Move storageImageDestination.HasThreadSafePutBlob
... so that it isn't in the middle of the PutBlob implementation. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for de78555 - Browse repository at this point
Copy the full SHA de78555View commit details -
Split storageImageDestination.putBlobToPendingFile from storageImageD…
…estination.PutBlob For now this is just an alias, but we will want to remove the public PutBlob implementation (in favor of using a generic compat wrapper). Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 6fd9d8a - Browse repository at this point
Copy the full SHA 6fd9d8aView commit details -
Use the more modern PutBlobWithOptions interface in putBlobToPendingFile
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for d194394 - Browse repository at this point
Copy the full SHA d194394View commit details -
Implement PutBlob in terms of PutBlobWithOptions
... allowing this to be replaced with a generic stub later. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for aaa4ae1 - Browse repository at this point
Copy the full SHA aaa4ae1View commit details -
Move the PutBlobPartial implementation
... so that it isn't in the middle of TryReusingBlob. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 71445ec - Browse repository at this point
Copy the full SHA 71445ecView commit details -
Rename tryReusingBlobWithSrcRef to tryReusingBlobAsPending
It will be the primary internal "locked" implementation point, we don't want to implement TryReusingBlob as a stack of calls, each WithOneMember implementing only that OneMember. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 8ebf5b5 - Browse repository at this point
Copy the full SHA 8ebf5b5View commit details -
Use TryReusingBlobOptions in tryReusingBlobAsPending
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 2bf11af - Browse repository at this point
Copy the full SHA 2bf11afView commit details -
Use TryReusingBlobOptions in tryReusingBlobLocked
... just like its caller tryReusingBlobAsPending Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for c5b1242 - Browse repository at this point
Copy the full SHA c5b1242View commit details -
Move the TryReusingBlob implementation
... so that tryReusingBlobAsPending and tryReusingBlobLocked are consecutive. We will merge the two (and TryReusingBlob will go away completley, eventually). Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 49876c6 - Browse repository at this point
Copy the full SHA 49876c6View commit details -
Implement TryReusingBlob in terms of TryReusingBlobWithOptions
When options.SrcRef and options.LayerIndex is not set, it amounts to the same thing. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 716833b - Browse repository at this point
Copy the full SHA 716833bView commit details -
Inline tryReusingBlobLocked into tryReusingBlobAsPending
It's the only caller now, and the semantics of "Locked" vs. "AsPending" is hard to describe; just have one larger function that does all kinds of lookups. If it turns out to be too large, we can split it to individual lookups, instead of having the SrcRef case treated as uniquely special. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 940a46c - Browse repository at this point
Copy the full SHA 940a46cView commit details -
Pass PutBlobOptions and TryReusingOptions by address in storage
... to avoid copies. Keep the interfaces in terms of struct values, to make the value semantics explicit (and maybe to help the compiler a bit to show that the data doesn't need to be on a heap). Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 4da6615 - Browse repository at this point
Copy the full SHA 4da6615View commit details