Skip to content

Revert "[manager/dispatcher] Synchronize Dispatcher.Stop() with incoming rpcs."#2518

Merged
anshulpundir merged 1 commit into
moby:masterfrom
anshulpundir:revert
Feb 20, 2018
Merged

Revert "[manager/dispatcher] Synchronize Dispatcher.Stop() with incoming rpcs."#2518
anshulpundir merged 1 commit into
moby:masterfrom
anshulpundir:revert

Conversation

@anshulpundir
Copy link
Copy Markdown
Contributor

@anshulpundir anshulpundir commented Feb 20, 2018

This reverts commit 0b2778a.

Need to revert since waitgroup Add() and Wait() itself need intricate synchronization and are not atomic. Will implement another way, likely a RWLock as @fcrisciani originally suggested.

…ing rpcs."

This reverts commit 0b2778a.

Signed-off-by: Anshul Pundir <anshul.pundir@docker.com>
@dperny
Copy link
Copy Markdown
Collaborator

dperny commented Feb 20, 2018

LGTM.

@fcrisciani
Copy link
Copy Markdown

LGTM

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 20, 2018

Codecov Report

Merging #2518 into master will increase coverage by 0.04%.
The diff coverage is 89.47%.

@@            Coverage Diff             @@
##           master    #2518      +/-   ##
==========================================
+ Coverage   61.38%   61.42%   +0.04%     
==========================================
  Files         133      133              
  Lines       21720    21710      -10     
==========================================
+ Hits        13332    13335       +3     
+ Misses       6953     6928      -25     
- Partials     1435     1447      +12

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