From 1d9946ff8733c437e496111bb33522661b23c8f5 Mon Sep 17 00:00:00 2001 From: Xu Peng Date: Fri, 26 Apr 2019 15:37:47 +0800 Subject: [PATCH] feat(db): change sqlite_orm header dependency Former-commit-id: d682b364b1b27a2af27f0246460bb9bbb6370fd0 --- cpp/src/db/DBMetaImpl.cpp | 3 ++- cpp/src/db/db_connection.h | 6 +----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/cpp/src/db/DBMetaImpl.cpp b/cpp/src/db/DBMetaImpl.cpp index 56b02b77..9e988f61 100644 --- a/cpp/src/db/DBMetaImpl.cpp +++ b/cpp/src/db/DBMetaImpl.cpp @@ -5,7 +5,7 @@ #include #include #include -#include +#include #include #include "DBMetaImpl.h" #include "IDGenerator.h" @@ -88,6 +88,7 @@ Status DBMetaImpl::initialize() { ConnectorPtr->sync_schema(); ConnectorPtr->open_forever(); // thread safe option + ConnectorPtr->pragma.journal_mode(journal_mode::WAL); // WAL => write ahead log cleanup(); diff --git a/cpp/src/db/db_connection.h b/cpp/src/db/db_connection.h index ecc55790..cfd34461 100644 --- a/cpp/src/db/db_connection.h +++ b/cpp/src/db/db_connection.h @@ -9,7 +9,7 @@ #include #include -#include +#include namespace zilliz { @@ -62,7 +62,3 @@ class Connection { } } } - - - - -- GitLab