tracker r2517 - in branches/uri: . src/libtracker-db



Author: juergbi
Date: Tue Nov 18 12:22:53 2008
New Revision: 2517
URL: http://svn.gnome.org/viewvc/tracker?rev=2517&view=rev

Log:
2008-11-18  JÃrg Billeter  <j bitron ch>

	* src/libtracker-db/tracker-db-manager.c:

	Increase database version due to URI support


Modified:
   branches/uri/ChangeLog
   branches/uri/src/libtracker-db/tracker-db-manager.c

Modified: branches/uri/src/libtracker-db/tracker-db-manager.c
==============================================================================
--- branches/uri/src/libtracker-db/tracker-db-manager.c	(original)
+++ branches/uri/src/libtracker-db/tracker-db-manager.c	Tue Nov 18 12:22:53 2008
@@ -48,7 +48,7 @@
 #define TRACKER_DB_MAX_FILE_SIZE      2000000000 
 
 /* Set current database version we are working with */
-#define TRACKER_DB_VERSION_NOW        TRACKER_DB_VERSION_2
+#define TRACKER_DB_VERSION_NOW        TRACKER_DB_VERSION_3
 #define TRACKER_DB_VERSION_FILE       "db-version.txt"
 
 typedef enum {
@@ -60,7 +60,8 @@
 typedef enum {
 	TRACKER_DB_VERSION_UNKNOWN, /* Unknown */
 	TRACKER_DB_VERSION_1,       /* TRUNK before indexer-split */
-	TRACKER_DB_VERSION_2        /* The indexer-split branch */
+	TRACKER_DB_VERSION_2,       /* The indexer-split branch */
+	TRACKER_DB_VERSION_3        /* The uri branch */
 } TrackerDBVersion;
 
 typedef struct {
@@ -2508,7 +2509,8 @@
 	version = db_get_version ();
 
 	if (version == TRACKER_DB_VERSION_UNKNOWN ||
-	    version == TRACKER_DB_VERSION_1) {
+	    version == TRACKER_DB_VERSION_1 ||
+	    version == TRACKER_DB_VERSION_2) {
 		g_message ("  A reindex will be forced");
 		need_reindex = TRUE;
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]