mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #2613 from xiang90/fix_import
etcdctl: wait for goroutine existing
This commit is contained in:
commit
a4fefd7f73
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user