Skip to content

Commit

Permalink
daemon: remove graphdb usage
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
  • Loading branch information
LK4D4 authored and justincormack committed Jan 17, 2017
1 parent 05378f4 commit b0f9958
Show file tree
Hide file tree
Showing 29 changed files with 0 additions and 158,423 deletions.
6 changes: 0 additions & 6 deletions daemon/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,6 @@ func (daemon *Daemon) setHostConfig(container *container.Container, hostConfig *
return err
}

// make sure links is not nil
// this ensures that on the next daemon restart we don't try to migrate from legacy sqlite links
if hostConfig.Links == nil {
hostConfig.Links = []string{}
}

container.HostConfig = hostConfig
return container.ToDisk()
}
Expand Down
13 changes: 0 additions & 13 deletions daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ func (daemon *Daemon) restore() error {
}
}

var migrateLegacyLinks bool // Not relevant on Windows
var wg sync.WaitGroup
var mapLock sync.Mutex
for _, c := range containers {
Expand Down Expand Up @@ -267,11 +266,6 @@ func (daemon *Daemon) restore() error {
c.SetDead()
c.ToDisk()
}

// if c.hostConfig.Links is nil (not just empty), then it is using the old sqlite links and needs to be migrated
if c.HostConfig != nil && c.HostConfig.Links == nil {
migrateLegacyLinks = true
}
}(c)
}
wg.Wait()
Expand All @@ -280,13 +274,6 @@ func (daemon *Daemon) restore() error {
return fmt.Errorf("Error initializing network controller: %v", err)
}

// Perform migration of legacy sqlite links (no-op on Windows)
if migrateLegacyLinks {
if err := daemon.sqliteMigration(containers); err != nil {
return err
}
}

// Now that all the containers are registered, register the links
for _, c := range containers {
if err := daemon.registerLinks(c, c.HostConfig); err != nil {
Expand Down
72 changes: 0 additions & 72 deletions daemon/links_linux.go

This file was deleted.

98 changes: 0 additions & 98 deletions daemon/links_linux_test.go

This file was deleted.

10 changes: 0 additions & 10 deletions daemon/links_notlinux.go

This file was deleted.

19 changes: 0 additions & 19 deletions pkg/graphdb/conn_sqlite3_linux.go

This file was deleted.

Loading

0 comments on commit b0f9958

Please sign in to comment.