[tracker/writeback: 10/23] Only report writeback for default graph
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker/writeback: 10/23] Only report writeback for default graph
- Date: Wed, 25 Nov 2009 10:04:01 +0000 (UTC)
commit b34d81d70325a42fefe85c3fd449bb613f71dd0b
Author: Philip Van Hoof <philip codeminded be>
Date: Wed Nov 11 20:22:23 2009 +0100
Only report writeback for default graph
src/tracker-store/tracker-writeback.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-store/tracker-writeback.c b/src/tracker-store/tracker-writeback.c
index 78619c8..5ad598b 100644
--- a/src/tracker-store/tracker-writeback.c
+++ b/src/tracker-store/tracker-writeback.c
@@ -60,6 +60,14 @@ tracker_writeback_check (const gchar *graph,
{
WritebackPrivate *private;
+ /* When graph is NULL, the graph is the default one. We only do
+ * writeback reporting in the default graph (update queries that
+ * aren't coming from the miner) */
+
+ if (graph != NULL) {
+ return;
+ }
+
private = g_static_private_get (&private_key);
g_return_if_fail (private != NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]