[tracker/wip/carlosg/2to3-export: 1/2] libtracker-data: Add flag to drop version checks
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/2to3-export: 1/2] libtracker-data: Add flag to drop version checks
- Date: Tue, 1 Sep 2020 22:39:00 +0000 (UTC)
commit 912a8077d370a9d12f6bff723f3c4888933f1542
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Sep 2 00:32:44 2020 +0200
libtracker-data: Add flag to drop version checks
Only for internal use, and with plenty of care.
src/libtracker-data/tracker-db-manager.c | 2 +-
src/libtracker-data/tracker-db-manager.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/libtracker-data/tracker-db-manager.c b/src/libtracker-data/tracker-db-manager.c
index a90245235..4eec98e11 100644
--- a/src/libtracker-data/tracker-db-manager.c
+++ b/src/libtracker-data/tracker-db-manager.c
@@ -579,7 +579,7 @@ tracker_db_manager_new (TrackerDBManagerFlags flags,
g_object_unref (db_manager);
return NULL;
}
- } else {
+ } else if ((flags & TRACKER_DB_MANAGER_SKIP_VERSION_CHECK) == 0) {
version = db_get_version (db_manager);
if (version < TRACKER_DB_VERSION_NOW) {
diff --git a/src/libtracker-data/tracker-db-manager.h b/src/libtracker-data/tracker-db-manager.h
index 5feb64b6f..7fd99dcbd 100644
--- a/src/libtracker-data/tracker-db-manager.h
+++ b/src/libtracker-data/tracker-db-manager.h
@@ -47,6 +47,7 @@ typedef enum {
TRACKER_DB_MANAGER_FTS_ENABLE_STOP_WORDS = 1 << 6,
TRACKER_DB_MANAGER_FTS_IGNORE_NUMBERS = 1 << 7,
TRACKER_DB_MANAGER_IN_MEMORY = 1 << 8,
+ TRACKER_DB_MANAGER_SKIP_VERSION_CHECK = 1 << 9,
} TrackerDBManagerFlags;
typedef struct _TrackerDBManager TrackerDBManager;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]