Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Clear the internal state before raising error.#8850

Merged
jessfraz merged 1 commit into
moby:masterfrom
shuai-z:clean-mount
Oct 31, 2014
Merged

Clear the internal state before raising error.#8850
jessfraz merged 1 commit into
moby:masterfrom
shuai-z:clean-mount

Conversation

@shuai-z

@shuai-z shuai-z commented Oct 30, 2014

Copy link
Copy Markdown
Contributor

If we need to raise an error, make sure the internal state is clean, because
a successful driver.Get() may have its internal state changed (eg. counting,
or mounts), while callers will only do that after a succussful Mount().

Signed-off-by: shuai-z [email protected]

If we need to raise an error, make sure the internal state is clean, because
a successful driver.Get() may have its internal state changed (eg. counting,
or mounts), while callers will only do that after a succussful Mount().

Signed-off-by: shuai-z <[email protected]>
@LK4D4

LK4D4 commented Oct 30, 2014

Copy link
Copy Markdown
Contributor

LGTM

2 similar comments
@crosbymichael

Copy link
Copy Markdown
Contributor

LGTM

@jessfraz

Copy link
Copy Markdown
Contributor

LGTM

jessfraz pushed a commit that referenced this pull request Oct 31, 2014
Clear the internal state before raising error.
@jessfraz jessfraz merged commit f68b8b3 into moby:master Oct 31, 2014
@shuai-z shuai-z deleted the clean-mount branch October 31, 2014 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants