[tracker/wip/carlosg/portal: 12/40] libtracker-data: Filter find_graph() by the given constraints
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/portal: 12/40] libtracker-data: Filter find_graph() by the given constraints
- Date: Sun, 12 Jul 2020 17:52:33 +0000 (UTC)
commit f8f06cc07ee3483123bae1d0cc52e05b677f5a2a
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Jan 23 18:24:08 2020 +0100
libtracker-data: Filter find_graph() by the given constraints
src/libtracker-data/tracker-sparql.c | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/src/libtracker-data/tracker-sparql.c b/src/libtracker-data/tracker-sparql.c
index 7c594238a..8d9c924c7 100644
--- a/src/libtracker-data/tracker-sparql.c
+++ b/src/libtracker-data/tracker-sparql.c
@@ -793,6 +793,14 @@ static gint
tracker_sparql_find_graph (TrackerSparql *sparql,
const gchar *name)
{
+ GHashTable *effective_graphs;
+
+ effective_graphs = tracker_sparql_get_effective_graphs (sparql);
+ if (!effective_graphs ||
+ !g_hash_table_contains (effective_graphs, name)) {
+ return 0;
+ }
+
return tracker_data_manager_find_graph (sparql->data_manager, name);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]