[tracker] libtracker-bus: There is no BatchUpdateArray
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-bus: There is no BatchUpdateArray
- Date: Thu, 7 Apr 2011 16:22:59 +0000 (UTC)
commit 071eff97cc57a34c262a36b63642c3477f6748e0
Author: Jürg Billeter <j bitron ch>
Date: Thu Apr 7 17:24:58 2011 +0200
libtracker-bus: There is no BatchUpdateArray
UpdateArray is always considered a batch operation.
src/libtracker-bus/tracker-bus.vala | 17 ++---------------
1 files changed, 2 insertions(+), 15 deletions(-)
---
diff --git a/src/libtracker-bus/tracker-bus.vala b/src/libtracker-bus/tracker-bus.vala
index 03ae3f3..855d90d 100644
--- a/src/libtracker-bus/tracker-bus.vala
+++ b/src/libtracker-bus/tracker-bus.vala
@@ -44,15 +44,6 @@ private interface Tracker.Bus.Steroids : DBusProxy {
batch_update.begin (sparql_stream, cancellable, callback);
}
}
-
- [DBus (visible = false)]
- public void update_array_begin (UnixInputStream sparql_stream, int priority, Cancellable? cancellable, AsyncReadyCallback callback) {
- if (priority <= GLib.Priority.DEFAULT) {
- update_array.begin (sparql_stream, cancellable, callback);
- } else {
- batch_update_array.begin (sparql_stream, cancellable, callback);
- }
- }
}
[DBus (name = "org.freedesktop.Tracker1.Statistics")]
@@ -209,7 +200,7 @@ public class Tracker.Bus.Connection : Tracker.Sparql.Connection {
// send D-Bus request
AsyncResult dbus_res = null;
bool sent_update = false;
- steroids_object.update_array_begin (input, priority, cancellable, (o, res) => {
+ steroids_object.update_array.begin (input, cancellable, (o, res) => {
dbus_res = res;
if (sent_update) {
update_array_async.callback ();
@@ -235,11 +226,7 @@ public class Tracker.Bus.Connection : Tracker.Sparql.Connection {
// process results (errors)
var result = new GenericArray<Error?> ();
Variant resultv;
- if (priority <= GLib.Priority.DEFAULT) {
- resultv = steroids_object.update_array.end (dbus_res);
- } else {
- resultv = steroids_object.batch_update_array.end (dbus_res);
- }
+ resultv = steroids_object.update_array.end (dbus_res);
var iter = resultv.iterator ();
string code, message;
while (iter.next ("s", out code)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]