From 9a994637d9300e9712dc965b9d12baafa280a0ca Mon Sep 17 00:00:00 2001 From: Peter Date: Tue, 5 Apr 2016 09:54:21 -0400 Subject: [PATCH] Fixing bug with in-memory SQLite storage This change swaps out the in-memory SQLite database for file-based data storage. SQLAlchemy support for in-memory SQLite storage does not work across threads. The new storage scheme stores all PyKMIP server data in /tmp. --- kmip/services/server/engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kmip/services/server/engine.py b/kmip/services/server/engine.py index d800ccd..42ef68d 100644 --- a/kmip/services/server/engine.py +++ b/kmip/services/server/engine.py @@ -84,7 +84,7 @@ class KmipEngine(object): self._cryptography_engine = engine.CryptographyEngine() self._data_store = sqlalchemy.create_engine( - 'sqlite:///:memory:', + 'sqlite:////tmp/pykmip.database', echo=False ) sqltypes.Base.metadata.create_all(self._data_store)