Merge lp:~mvo/snappy/snappy-panic-less into lp:~snappy-dev/snappy/snappy-moved-to-github
Proposed by
Michael Vogt
Status: | Needs review |
---|---|
Proposed branch: | lp:~mvo/snappy/snappy-panic-less |
Merge into: | lp:~snappy-dev/snappy/snappy-moved-to-github |
Diff against target: |
38 lines (+9/-4) 2 files modified
priv/priv.go (+0/-3) priv/priv_test.go (+9/-1) |
To merge this branch: | bzr merge lp:~mvo/snappy/snappy-panic-less |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
John Lenton (community) | Approve | ||
Review via email: mp+275280@code.launchpad.net |
Description of the change
Tiny branch that fixes a panic when doing:
"""
priv := New(lockfile)
priv.Lock()
priv.Unlock()
priv.Lock()
"""
Kudos to John Lenton for discovering this isssue.
To post a comment you must log in.
Unmerged revisions
- 794. By Michael Vogt
-
do not panic if a priv.Mutex is taken/released/
taken again
Hah.
I didn't do this myself because I didn't understand why it was being nil'ed, so left it alone.
That it can be removed entirely is good news :)