etcdserver: Unmask the snapshotter. Fixes #2295

This commit is contained in:
Barak Michener
2015-02-13 11:56:00 -05:00
parent b06e43b803
commit a0e3bc9cbd

View File

@@ -206,7 +206,7 @@ func NewServer(cfg *ServerConfig) (*EtcdServer, error) {
if cfg.ShouldDiscover() {
log.Printf("etcdserver: discovery token ignored since a cluster has already been initialized. Valid log found at %q", cfg.WALDir())
}
ss := snap.New(cfg.SnapDir())
ss = snap.New(cfg.SnapDir())
snapshot, err := ss.Load()
if err != nil && err != snap.ErrNoSnapshot {
return nil, err