[tracker/wip/carlosg/portal: 22/47] 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: 22/47] libtracker-data: Filter find_graph() by the given constraints
- Date: Mon, 22 Jun 2020 08:22:12 +0000 (UTC)
commit d94bbd9c5cb0be15ba904c3970e54ba06929e7c9
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 1a02c7274..99b3d5af5 100644
--- a/src/libtracker-data/tracker-sparql.c
+++ b/src/libtracker-data/tracker-sparql.c
@@ -791,6 +791,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]