Revert "Change pkg db journaling mode to WAL"
[platform/core/appfw/pkgmgr-info.git] / tool / pkg-db-recovery.c
index f031878..ac3c2c2 100644 (file)
@@ -97,7 +97,6 @@ static int __db_busy_handler(void *data, int count)
 static bool __integrity_check(const char *db_path)
 {
        int ret = -1;
-       int persist_wal = 1;
        sqlite3_stmt *stmt = NULL;
        const char *check_result;
        static const char integrity_check_query[] =
@@ -120,14 +119,6 @@ static bool __integrity_check(const char *db_path)
                return ret;
        }
 
-       ret = sqlite3_file_control(db, NULL, SQLITE_FCNTL_PERSIST_WAL, &persist_wal);
-       if (ret != SQLITE_OK) {
-               LOGE("failed to sqlite3_file_control: %s",
-                               sqlite3_errmsg(db));
-               sqlite3_close_v2(db);
-               return ret;
-       }
-
        ret = sqlite3_prepare_v2(db, integrity_check_query,
                        strlen(integrity_check_query), &stmt, NULL);
        if (ret != SQLITE_OK) {