From 6c9fb5e2bd35cdf48fde3aec3e47d8a930badd82 Mon Sep 17 00:00:00 2001 From: fengyang Date: Thu, 12 Dec 2024 09:24:47 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E6=97=A5=E5=BF=97=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: fengyang --- services/common/src/bundle_active_usage_database.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/services/common/src/bundle_active_usage_database.cpp b/services/common/src/bundle_active_usage_database.cpp index abb1095..f027bcf 100644 --- a/services/common/src/bundle_active_usage_database.cpp +++ b/services/common/src/bundle_active_usage_database.cpp @@ -571,7 +571,6 @@ shared_ptr WEAK_FUNC BundleActiveUsageDatabase::GetBundleAc string currDatabaseFileConfig = BUNDLE_ACTIVE_DATABASE_DIR + databaseFiles_.at(databaseType); RdbStoreConfig config(currDatabaseFileConfig); BundleActiveOpenCallback rdbDataCallBack; - config.SetJournalMode(NativeRdb::JournalMode::MODE_OFF); config.SetSecurityLevel(NativeRdb::SecurityLevel::S1); rdbStore = RdbHelper::GetRdbStore(config, BUNDLE_ACTIVE_RDB_VERSION, rdbDataCallBack, errCode); if ((rdbStore == nullptr)) { -- Gitee From 7b101c102794fba14b20fb8c04f4dbf3a84aa21e Mon Sep 17 00:00:00 2001 From: fengyang Date: Thu, 12 Dec 2024 09:51:29 +0800 Subject: [PATCH 2/2] push Signed-off-by: fengyang --- services/common/src/bundle_active_usage_database.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/services/common/src/bundle_active_usage_database.cpp b/services/common/src/bundle_active_usage_database.cpp index f027bcf..b9933fe 100644 --- a/services/common/src/bundle_active_usage_database.cpp +++ b/services/common/src/bundle_active_usage_database.cpp @@ -571,6 +571,7 @@ shared_ptr WEAK_FUNC BundleActiveUsageDatabase::GetBundleAc string currDatabaseFileConfig = BUNDLE_ACTIVE_DATABASE_DIR + databaseFiles_.at(databaseType); RdbStoreConfig config(currDatabaseFileConfig); BundleActiveOpenCallback rdbDataCallBack; + config.SetJournalMode(NativeRdb::JournalMode::MODE_WAL); config.SetSecurityLevel(NativeRdb::SecurityLevel::S1); rdbStore = RdbHelper::GetRdbStore(config, BUNDLE_ACTIVE_RDB_VERSION, rdbDataCallBack, errCode); if ((rdbStore == nullptr)) { -- Gitee