diff --git a/native/cpp/CommonCpp/DatabaseManagers/DatabaseManager.cpp b/native/cpp/CommonCpp/DatabaseManagers/DatabaseManager.cpp --- a/native/cpp/CommonCpp/DatabaseManagers/DatabaseManager.cpp +++ b/native/cpp/CommonCpp/DatabaseManagers/DatabaseManager.cpp @@ -200,6 +200,7 @@ throw std::runtime_error("invalid backupLogDataKey size"); } + DatabaseManager::connectionManager->initializeConnection(); SQLiteUtils::rekeyDatabase( DatabaseManager::connectionManager->getConnection(), backupDataKey); @@ -277,6 +278,7 @@ SQLiteUtils::setEncryptionKey( backupDB, DatabaseManager::connectionManager->getBackupDataKey()); + DatabaseManager::connectionManager->initializeConnection(); sqlite3_backup *backupObj = sqlite3_backup_init( backupDB, "main", diff --git a/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp b/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp --- a/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp +++ b/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp @@ -66,7 +66,6 @@ std::shared_ptr connectionManager) : connectionManager(std::move(connectionManager)) { this->migrate(); - SQLiteQueryExecutor::connectionManager->initializeConnection(); std::string currentBackupID = this->getMetadata("backupID"); if (!ServicesUtils::fullBackupSupport || !currentBackupID.size()) { return; @@ -79,7 +78,6 @@ : connectionManager( std::make_shared(sqliteFilePath)) { this->migrate(); - SQLiteQueryExecutor::connectionManager->initializeConnection(); } #endif diff --git a/web/shared-worker/_generated/comm_query_executor.wasm b/web/shared-worker/_generated/comm_query_executor.wasm index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 GIT binary patch literal 0 Hc$@