[tracker/libtracker-sparql-porting: 31/34] libtracker-miner: Drop update_commit calls
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/libtracker-sparql-porting: 31/34] libtracker-miner: Drop update_commit calls
- Date: Mon, 16 Aug 2010 10:23:22 +0000 (UTC)
commit fce326d8c7ee49ac271bfff6b7e437dcc60f684e
Author: Jürg Billeter <j bitron ch>
Date: Tue Aug 10 16:44:59 2010 +0200
libtracker-miner: Drop update_commit calls
src/libtracker-miner/tracker-miner-fs.c | 31 -------------------------------
src/miners/fs/tracker-miner-files.c | 2 +-
2 files changed, 1 insertions(+), 32 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 3b62cb2..cc980b6 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -950,28 +950,11 @@ process_print_stats (TrackerMinerFS *fs)
}
static void
-commit_cb (GObject *object,
- GAsyncResult *result,
- gpointer user_data)
-{
- GError *error = NULL;
-
- tracker_sparql_connection_update_commit_finish (TRACKER_SPARQL_CONNECTION (object), result, &error);
-
- if (error) {
- g_critical ("Could not commit: %s", error->message);
- g_error_free (error);
- }
-}
-
-static void
process_stop (TrackerMinerFS *fs)
{
/* Now we have finished crawling, print stats and enable monitor events */
process_print_stats (fs);
- tracker_sparql_connection_update_commit_async (tracker_miner_get_connection (TRACKER_MINER (fs)), NULL, commit_cb, NULL);
-
g_message ("Idle");
g_object_set (fs,
@@ -1041,13 +1024,6 @@ sparql_update_cb (GObject *object,
priv->total_files_notified_error++;
g_error_free (error);
} else {
- if (fs->private->been_crawled) {
- /* Only commit immediately for
- * changes after initial crawling.
- */
- tracker_sparql_connection_update_commit_async (TRACKER_SPARQL_CONNECTION (object), NULL, commit_cb, NULL);
- }
-
if (fs->private->current_iri_cache_parent) {
GFile *parent;
@@ -2395,13 +2371,6 @@ item_queue_handlers_cb (gpointer user_data)
fs->private->item_queues_handler_id = 0;
return FALSE;
} else {
- if (fs->private->been_crawled) {
- /* Only commit immediately for
- * changes after initial crawling.
- */
- tracker_sparql_connection_update_commit_async (tracker_miner_get_connection (TRACKER_MINER (fs)), NULL, commit_cb, NULL);
- }
-
return TRUE;
}
}
diff --git a/src/miners/fs/tracker-miner-files.c b/src/miners/fs/tracker-miner-files.c
index b9cc3dc..3768775 100644
--- a/src/miners/fs/tracker-miner-files.c
+++ b/src/miners/fs/tracker-miner-files.c
@@ -42,7 +42,7 @@
#include <libtracker-common/tracker-type-utils.h>
#include <libtracker-common/tracker-utils.h>
-#include <libtracker-data/tracker-data.h>
+#include <libtracker-data/tracker-db-manager.h>
#include "tracker-miner-files.h"
#include "tracker-config.h"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]