Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that stack operation lock is always unlocked #892

Merged
merged 3 commits into from
Jun 23, 2016
Merged

Conversation

ejholmes
Copy link
Contributor

I discovered that there are certain cases where the stack operation lock would not get unlocked. If, for example, an error was returned from calling UpdateStack, we'd never reach the call to l.Unlock().

This change makes it so that performStackOperation is synchronous throughout the stack operation, which means we can just defer l.Unlock() immediately after locking.

@@ -131,6 +131,10 @@ type Scheduler struct {
// Any additional tags to add to stacks.
Tags []*cloudformation.Tag

// When true, alls to Submit won't return until the stack has
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/alls/calls

@mwildehahn
Copy link
Contributor

👍 looks great

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.

2 participants