snapshot: follow dst-first order convention in commit
Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
parent
b52cf8b440
commit
bdc065a1df
2 changed files with 4 additions and 4 deletions
|
@ -51,7 +51,7 @@ func (o *Overlayfs) Prepare(key string, parentName string) ([]containerd.Mount,
|
|||
return active.mounts(o.cache)
|
||||
}
|
||||
|
||||
func (o *Overlayfs) Commit(key string, name string) error {
|
||||
func (o *Overlayfs) Commit(name, key string) error {
|
||||
active := o.getActive(key)
|
||||
return active.commit(name)
|
||||
}
|
||||
|
|
|
@ -67,7 +67,7 @@ func TestOverlayfsCommit(t *testing.T) {
|
|||
t.Error(err)
|
||||
return
|
||||
}
|
||||
if err := o.Commit(key, "base"); err != nil {
|
||||
if err := o.Commit("base", key); err != nil {
|
||||
t.Error(err)
|
||||
return
|
||||
}
|
||||
|
@ -90,7 +90,7 @@ func TestOverlayfsOverlayMount(t *testing.T) {
|
|||
t.Error(err)
|
||||
return
|
||||
}
|
||||
if err := o.Commit(key, "base"); err != nil {
|
||||
if err := o.Commit("base", key); err != nil {
|
||||
t.Error(err)
|
||||
return
|
||||
}
|
||||
|
@ -150,7 +150,7 @@ func TestOverlayfsOverlayRead(t *testing.T) {
|
|||
t.Error(err)
|
||||
return
|
||||
}
|
||||
if err := o.Commit(key, "base"); err != nil {
|
||||
if err := o.Commit("base", key); err != nil {
|
||||
t.Error(err)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue