snapshot: follow dst-first order convention in commit

Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
Stephen J Day 2016-12-12 21:10:09 -08:00
parent b52cf8b440
commit bdc065a1df
2 changed files with 4 additions and 4 deletions

View file

@ -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)
}

View file

@ -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
}