Sfoglia il codice sorgente

btrfs: Add comment to Put()

Document why we don't need to do anything in Put().

Docker-DCO-1.1-Signed-off-by: Alexander Larsson <alexl@redhat.com> (github: alexlarsson)
Alexander Larsson 11 anni fa
parent
commit
a1851a6d3e
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      graphdriver/btrfs/btrfs.go

+ 2 - 0
graphdriver/btrfs/btrfs.go

@@ -206,6 +206,8 @@ func (d *Driver) Get(id string) (string, error) {
 }
 }
 
 
 func (d *Driver) Put(id string) {
 func (d *Driver) Put(id string) {
+	// Get() creates no runtime resources (like e.g. mounts)
+	// so this doesn't need to do anything.
 }
 }
 
 
 func (d *Driver) Exists(id string) bool {
 func (d *Driver) Exists(id string) bool {