Skip to content

Commit

Permalink
#461: fix locking on setDefaultRemoteVolume
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlotte committed Jun 26, 2018
1 parent f1cb33c commit 9814615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/dm/pkg/remotes/remotes.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ func (c *Configuration) DefaultRemoteVolumeFor(peer, namespace, volume string) (
func (c *Configuration) SetDefaultRemoteVolumeFor(peer, namespace, volume, remoteNamespace, remoteVolume string) error {
c.lock.Lock()
defer c.lock.Unlock()
remote, err := c.GetRemote(peer)
remote, err := c.getRemote(peer)
if err != nil {
return fmt.Errorf(
"Unable to find remote '%s'",
Expand Down

0 comments on commit 9814615

Please sign in to comment.