[gnome-photos/wip/rishi/import-3: 3/7] tracker-queue: Log when a query has been processed
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/import-3: 3/7] tracker-queue: Log when a query has been processed
- Date: Mon, 12 Feb 2018 12:28:05 +0000 (UTC)
commit 49f314eed3a4985503b981f761e95e1ec67a14c1
Author: Debarshi Ray <debarshir gnome org>
Date: Sat Feb 10 02:54:58 2018 +0100
tracker-queue: Log when a query has been processed
Sometimes, under heavy load, such as when importing simultaneously from
two attached devices, there is no response to a query submitted
through the TrackerSparqlConnection. This is meant to help debug such
situations.
https://gitlab.gnome.org/GNOME/gnome-photos/issues/29
src/photos-tracker-queue.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/photos-tracker-queue.c b/src/photos-tracker-queue.c
index 936bbc41..0d0cc810 100644
--- a/src/photos-tracker-queue.c
+++ b/src/photos-tracker-queue.c
@@ -144,6 +144,8 @@ photos_tracker_queue_collector (GObject *source_object, GAsyncResult *res, gpoin
PhotosTrackerQueue *self = PHOTOS_TRACKER_QUEUE (user_data);
PhotosTrackerQueueData *data;
+ photos_debug (PHOTOS_DEBUG_TRACKER, "Query processed");
+
data = g_queue_pop_head (self->queue);
if (data->callback != NULL)
(*data->callback) (source_object, res, data->user_data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]