-
Notifications
You must be signed in to change notification settings - Fork 232
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
Move locking responsibility from store.go to the container/image/layer stores #1395
Commits on Oct 17, 2022
-
Copy methods from included interfaces directly into rwContainerStore
... so that we can modify/replace them. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 749be71 - Browse repository at this point
Copy the full SHA 749be71View commit details -
Replace containerStore.{RLock,Unlock} with {startReading,stopReading}
This integrates ReloadIfChanges, and makes it clearer that the responsibility for maintaining locking details is with the containerStore; we can change it in a single place. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 243ec61 - Browse repository at this point
Copy the full SHA 243ec61View commit details -
Replace containerStore.{Lock,Unlock} with {startWriting,stopWriting}
This integrates ReloadIfChanges, and makes it clearer that the responsibility for maintaining locking details is with the containerStore; we can change it in a single place. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for dcefc6d - Browse repository at this point
Copy the full SHA dcefc6dView commit details -
Avoid a warning that is now reported
Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 607ceb6 - Browse repository at this point
Copy the full SHA 607ceb6View commit details -
Remove completely unused methods from rwContainerStore
Exposing the internals of the lock is not necessary, and exposes too many implementation details. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for a64b85d - Browse repository at this point
Copy the full SHA a64b85dView commit details -
Remove unused lockfile forwarders from rwContainerStore API
The only callers are internal, have them access r.lockfile directly. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 409ee3e - Browse repository at this point
Copy the full SHA 409ee3eView commit details -
Remove Load() and ReloadIfChanged() from rwContainerStore API
Callers should just use startReading/startWriting. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 58f1120 - Browse repository at this point
Copy the full SHA 58f1120View commit details -
Remove Save() from rwContainerStore API
It is done implicitly by all writers already. Also fix the documentation not to point at an explicit Touch(), which is not actually necessary. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 4c55fad - Browse repository at this point
Copy the full SHA 4c55fadView commit details -
Remove Lock/Unlock methods from rwContainerStore
They are now only used in the constructor, so use a variant of startWriting instead. This code path is not performance-critical, so let's share as much code as possible to ensure consistency in locking. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for b44c193 - Browse repository at this point
Copy the full SHA b44c193View commit details -
Move containerStore.ReloadIfChanged
... to be closer to the lock / load set of methods. Only moves unchanged code, should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for adae72b - Browse repository at this point
Copy the full SHA adae72bView commit details -
Copy methods from included interfaces directly into *ImageStore
... so that we can modify/replace them. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 9844aa3 - Browse repository at this point
Copy the full SHA 9844aa3View commit details -
Replace imageStore.{RLock,Unlock} with {startReading,stopReading}
This integrates ReloadIfChanged, and makes it clearer that the responsibility for maintaining locking details is with the imageStore; we can change it in a single place. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for a047bc1 - Browse repository at this point
Copy the full SHA a047bc1View commit details -
Replace imageStore.{Lock,Unlock} with {startWriting,stopWriting}
This integrates ReloadIfChanged, and makes it clearer that the responsibility for maintaining locking details is with the imageStore; we can change it in a single place. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 2f68ba2 - Browse repository at this point
Copy the full SHA 2f68ba2View commit details -
Move the writing lock methods from roImageStore to rwImageStore
... for a bit of extra safety. That requires us to be a bit more explicit in one of the users. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for d312f1d - Browse repository at this point
Copy the full SHA d312f1dView commit details -
Remove a completely unused method from roImageStore
Exposing the internals of the lock is not necessary, and exposes too many implementation details. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 19659d9 - Browse repository at this point
Copy the full SHA 19659d9View commit details -
Remove unused lockfile forwarders from roImageStore API
The only callers are internal, have them access r.lockfile directly. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 77ab6e4 - Browse repository at this point
Copy the full SHA 77ab6e4View commit details -
Remove Load() and ReloadIfChanged() from roImageStore API
Callers should just use startReading/startWriting. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 097e954 - Browse repository at this point
Copy the full SHA 097e954View commit details -
Remove a redundant rwImageStore.Save() call
rwImageStore.Create() already calls it. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 5f6642c - Browse repository at this point
Copy the full SHA 5f6642cView commit details -
Remove Save() from rwImageStore API
It is done implicitly by all writers already. Also fix the documentation not to point at an explicit Touch(), which is not actually necessary. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 8af42de - Browse repository at this point
Copy the full SHA 8af42deView commit details -
Remove Lock/Unlock methods from imageStore
They are now only used in the constructors, so use a variant of startReading/startWriting instead. This code path is not performance-critical, so let's share as much code as possible to ensure consistency in locking. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 360bfae - Browse repository at this point
Copy the full SHA 360bfaeView commit details -
Move imageStore.ReloadIfChanged
... to be closer to the lock / load set of methods. Only moves unchanged code, should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 8db2532 - Browse repository at this point
Copy the full SHA 8db2532View commit details -
Copy methods from included interfaces directly into *LayerStore
... so that we can modify/replace them. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for d5b48be - Browse repository at this point
Copy the full SHA d5b48beView commit details -
Replace layerStore.{RLock,Unlock} with {startReading,stopReading}
This integrates ReloadIfChanged, and makes it clearer that the responsibility for maintaining locking details is with the layerStore; we can change it in a single place. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for c4089b6 - Browse repository at this point
Copy the full SHA c4089b6View commit details -
Replace layerStore.{Lock,Unlock} with {startWriting,stopWriting}
This integrates ReloadIfChanged, and makes it clearer that the responsibility for maintaining locking details is with the layerStore; we can change it in a single place. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for f9678cd - Browse repository at this point
Copy the full SHA f9678cdView commit details -
Move the writing lock methods from roLayerStore to rwLayerStore
... for a bit of extra safety. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for c935245 - Browse repository at this point
Copy the full SHA c935245View commit details -
Remove a completely unused method from roLayerStore
Exposing the internals of the lock is not necessary, and exposes too many implementation details. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 124e526 - Browse repository at this point
Copy the full SHA 124e526View commit details -
Remove unused lockfile forwarders from roLayerStore API
The only callers are internal, have them access r.lockfile directly. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 5791a56 - Browse repository at this point
Copy the full SHA 5791a56View commit details -
Remove Modified() from the roLayerStore API
It is an internal helper for ReloadIfChanged, with no external users. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for ee97086 - Browse repository at this point
Copy the full SHA ee97086View commit details -
Remove Load() and ReloadIfChanged() from roLayerStore API
Callers should just use startReading/startWriting. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 328ccce - Browse repository at this point
Copy the full SHA 328ccceView commit details -
Remove Save() from rwLayerStore API
It is done implicitly by all writers already. Also fix the documentation not to point at an explicit Touch(), which is not actually necessary. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for d2defdb - Browse repository at this point
Copy the full SHA d2defdbView commit details -
Remove Lock/Unlock methods from layerStore
They are now only used in the constructors, so use a variant of startReading/startWriting instead. This code path is not performance-critical, so let's share as much code as possible to ensure consistency in locking. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for dbe5fe3 - Browse repository at this point
Copy the full SHA dbe5fe3View commit details -
Move layerStore.{ReloadIfChanged,Modified}
.. to be closer to the lock / load set of methods. Only moves unchanged code, should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for d0ad132 - Browse repository at this point
Copy the full SHA d0ad132View commit details