mirror of https://github.com/perkeep/perkeep.git
camput: add debugging for camlistore.org/issue/221
Change-Id: If0ed73cb16409ac5c1f67ffc878038075cb7e432
This commit is contained in:
parent
4270ec4ce5
commit
5c83627a1f
|
@ -782,6 +782,9 @@ func (n *node) String() string {
|
|||
func (n *node) SetPutResult(res *client.PutResult, err error) {
|
||||
n.mu.Lock()
|
||||
defer n.mu.Unlock()
|
||||
if res == nil && err == nil {
|
||||
panic("SetPutResult called with (nil, nil)")
|
||||
}
|
||||
n.res, n.err = res, err
|
||||
n.cond.Signal()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue