[tracker/libtracker-miner] Force a commit after each update.
- From: Carlos Garnacho <carlosg src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker/libtracker-miner] Force a commit after each update.
- Date: Wed, 19 Aug 2009 13:19:29 +0000 (UTC)
commit 0db89d4b6a80f8d1d4c70130e542ceaf0a099a46
Author: Carlos Garnacho <carlos lanedo com>
Date: Wed Aug 19 15:15:28 2009 +0200
Force a commit after each update.
We definitely need a better policy for committing data, this is going to
slow down things.
src/libtracker-miner/tracker-miner.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner.c b/src/libtracker-miner/tracker-miner.c
index 12ec2b4..3e01391 100644
--- a/src/libtracker-miner/tracker-miner.c
+++ b/src/libtracker-miner/tracker-miner.c
@@ -492,6 +492,9 @@ tracker_miner_execute_sparql (TrackerMiner *miner,
sparql,
&internal_error);
+ /* FIXME: should not commit after each update */
+ tracker_resources_batch_commit (miner->private->client, NULL);
+
if (!internal_error) {
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]