Merge pull request #2613 from xiang90/fix_import

etcdctl: wait for goroutine existing
This commit is contained in:
Xiang Li 2015-03-31 11:56:35 -07:00
commit a4fefd7f73

View File

@ -80,6 +80,7 @@ func handleImportSnap(c *cli.Context) {
}
n := copyKeys(all.Node, setc)
close(setc)
wg.Wait()
fmt.Printf("finished importing %d keys\n", n)
}