[tracker/tracker-store] tracker-indexer: Do not open DB connection
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [tracker/tracker-store] tracker-indexer: Do not open DB connection
- Date: Thu, 25 Jun 2009 15:12:12 +0000 (UTC)
commit eee021c8953924b576f51126114d19fdaa4f6330
Author: Jürg Billeter <j bitron ch>
Date: Thu Jun 25 16:54:46 2009 +0200
tracker-indexer: Do not open DB connection
src/tracker-indexer/tracker-main.c | 18 ------------------
1 files changed, 0 insertions(+), 18 deletions(-)
---
diff --git a/src/tracker-indexer/tracker-main.c b/src/tracker-indexer/tracker-main.c
index b1c62e0..9f7cd7d 100644
--- a/src/tracker-indexer/tracker-main.c
+++ b/src/tracker-indexer/tracker-main.c
@@ -46,9 +46,6 @@
#include <libtracker-db/tracker-db-manager.h>
#include <libtracker-db/tracker-db-dbus.h>
-#include <libtracker-data/tracker-data-manager.h>
-#include <libtracker-data/tracker-data-update.h>
-#include <libtracker-data/tracker-data-query.h>
#include <libtracker-data/tracker-turtle.h>
#include "tracker-dbus.h"
@@ -239,11 +236,9 @@ main (gint argc, gchar *argv[])
TrackerConfig *config;
TrackerLanguage *language;
TrackerIndexer *indexer;
- TrackerDBManagerFlags flags = 0;
GOptionContext *context;
GError *error = NULL;
gchar *filename;
- gboolean is_first_time_index;
g_type_init ();
@@ -311,18 +306,6 @@ main (gint argc, gchar *argv[])
sanity_check_option_values (config);
- /* Initialize database manager */
- if (tracker_config_get_low_memory_mode (config)) {
- flags |= TRACKER_DB_MANAGER_LOW_MEMORY_MODE;
- }
-
- /* Only tracker-store writes to database */
- flags |= TRACKER_DB_MANAGER_READONLY;
-
- if (!tracker_data_manager_init (config, language, flags, NULL, &is_first_time_index)) {
- return EXIT_FAILURE;
- }
-
tracker_module_config_init ();
/* Set IO priority */
@@ -389,7 +372,6 @@ main (gint argc, gchar *argv[])
tracker_thumbnailer_shutdown ();
tracker_dbus_shutdown ();
- tracker_data_manager_shutdown ();
tracker_module_config_shutdown ();
tracker_log_shutdown ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]