Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hold the layer store lock while diffing
While generating a Diff, hold the lock on the layer store until after we've completely finished building the diff. There's an internal Mount/Unmount being done so that we can read the layer's contents, and we don't update the mount counts properly if we're not still holding the lock when the layer store's Unmount() method is called, which doesn't happen until the ReadCloser that Diff() returns gets closed. Signed-off-by: Nalin Dahyabhai <[email protected]>
- Loading branch information