summaryrefslogtreecommitdiff
path: root/libpod/runtime.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-03-26 11:40:57 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-03-26 20:18:24 +0000
commitb18f089545b27aaa09b565651851822d18ef0dc3 (patch)
tree3fc09828c79f034b281f65192f9dfb4154906221 /libpod/runtime.go
parentf2894f243bb39f6daae0daee305ec5899ca3e4d1 (diff)
downloadpodman-b18f089545b27aaa09b565651851822d18ef0dc3.tar.gz
podman-b18f089545b27aaa09b565651851822d18ef0dc3.tar.bz2
podman-b18f089545b27aaa09b565651851822d18ef0dc3.zip
Remove current SQLite DB driver
The SQLite DB backend has become an unmanageable nightmare. I like having the option for DB work, but it's become an active hindrance to further development, and it's definitely not in any shape to be actively used. Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #548 Approved by: baude
Diffstat (limited to 'libpod/runtime.go')
-rw-r--r--libpod/runtime.go19
1 files changed, 2 insertions, 17 deletions
diff --git a/libpod/runtime.go b/libpod/runtime.go
index 5c3705ee9..39c65548b 100644
--- a/libpod/runtime.go
+++ b/libpod/runtime.go
@@ -30,6 +30,7 @@ const (
// reboot
InMemoryStateStore RuntimeStateStore = iota
// SQLiteStateStore is a state backed by a SQLite database
+ // It is presently disabled
SQLiteStateStore RuntimeStateStore = iota
// BoltDBStateStore is a state backed by a BoltDB database
BoltDBStateStore RuntimeStateStore = iota
@@ -386,23 +387,7 @@ func makeRuntime(runtime *Runtime) error {
}
runtime.state = state
case SQLiteStateStore:
- dbPath := filepath.Join(runtime.config.StaticDir, "sql_state.db")
- specsDir := filepath.Join(runtime.config.StaticDir, "ocispec")
-
- // Make a directory to hold JSON versions of container OCI specs
- if err := os.MkdirAll(specsDir, 0755); err != nil {
- // The directory is allowed to exist
- if !os.IsExist(err) {
- return errors.Wrapf(err, "error creating runtime OCI specs directory %s",
- specsDir)
- }
- }
-
- state, err := NewSQLState(dbPath, specsDir, runtime.lockDir, runtime)
- if err != nil {
- return err
- }
- runtime.state = state
+ return errors.Wrapf(ErrInvalidArg, "SQLite state is currently disabled")
case BoltDBStateStore:
dbPath := filepath.Join(runtime.config.StaticDir, "bolt_state.db")