[tracker] tracker-store: Finalize the TrackerDBusRequests on blank updates
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-store: Finalize the TrackerDBusRequests on blank updates
- Date: Wed, 7 Dec 2011 14:25:05 +0000 (UTC)
commit ec4c2391d376a06ceab3dea9ecaafebec47887bb
Author: Carlos Garnacho <carlos lanedo com>
Date: Wed Dec 7 15:22:09 2011 +0100
tracker-store: Finalize the TrackerDBusRequests on blank updates
This was likely to leave stuck resources for already disconnected clients
in the tracker-store side.
src/tracker-store/tracker-resources.vala | 6 +++++-
src/tracker-store/tracker-steroids.vala | 6 +++++-
2 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker-store/tracker-resources.vala b/src/tracker-store/tracker-resources.vala
index cd7b6eb..c5d3a82 100644
--- a/src/tracker-store/tracker-resources.vala
+++ b/src/tracker-store/tracker-resources.vala
@@ -148,7 +148,11 @@ public class Tracker.Resources : Object {
var request = DBusRequest.begin (sender, "Resources.SparqlUpdateBlank");
request.debug ("query: %s", update);
try {
- return yield Tracker.Store.sparql_update_blank (update, Tracker.Store.Priority.HIGH, sender);
+ var variant = yield Tracker.Store.sparql_update_blank (update, Tracker.Store.Priority.HIGH, sender);
+
+ request.end ();
+
+ return variant;
} catch (DBInterfaceError.NO_SPACE ie) {
throw new Sparql.Error.NO_SPACE (ie.message);
} catch (Error e) {
diff --git a/src/tracker-store/tracker-steroids.vala b/src/tracker-store/tracker-steroids.vala
index 124d634..7b80989 100644
--- a/src/tracker-store/tracker-steroids.vala
+++ b/src/tracker-store/tracker-steroids.vala
@@ -120,7 +120,11 @@ public class Tracker.Steroids : Object {
return null;
} else {
- return yield Tracker.Store.sparql_update_blank ((string) query, priority, sender);
+ var variant = yield Tracker.Store.sparql_update_blank ((string) query, priority, sender);
+
+ request.end ();
+
+ return variant;
}
} catch (DBInterfaceError.NO_SPACE ie) {
throw new Sparql.Error.NO_SPACE (ie.message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]