12183: Add comment about purpose of "relocated"
authorPeter Amstutz <peter.amstutz@curoverse.com>
Thu, 5 Oct 2017 14:40:04 +0000 (10:40 -0400)
committerPeter Amstutz <pamstutz@veritasgenetics.com>
Wed, 1 Nov 2017 20:50:37 +0000 (16:50 -0400)
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz@veritasgenetics.com>

services/crunch-run/crunchrun.go

index bd58201749768fd86fe45328e8b20e907672bb66..0f687142a20b2487fc1a0e490c6d68c8aaba130c 100644 (file)
@@ -940,6 +940,9 @@ func (runner *ContainerRunner) UploadOutputFile(
                return "", infoerr
        }
 
+       // When following symlinks, the source path may need to be logically
+       // relocated to some other path within the output collection.  Remove
+       // the relocateFrom prefix and replace it with relocateTo.
        relocated := relocateTo + path[len(relocateFrom):]
 
        if info.Mode().IsRegular() {