[tracker] libtracker-miner: Cut some slack on the reentry counter
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-miner: Cut some slack on the reentry counter
- Date: Mon, 14 Mar 2016 22:27:59 +0000 (UTC)
commit 4f66cf82e2d8215887ab1ee09288df025fd642d2
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Mar 14 01:10:54 2016 +0100
libtracker-miner: Cut some slack on the reentry counter
REENTRY_MAX is 2 currently, so counter<2 is effectively 1, which
doesn't make much for "reentry".
src/libtracker-miner/tracker-miner-fs.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 3022bd9..dc533a3 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -2105,7 +2105,7 @@ item_reenqueue_full (TrackerMinerFS *fs,
reentry_counter = GPOINTER_TO_INT (g_object_get_qdata (G_OBJECT (queue_file),
fs->priv->quark_reentry_counter));
- if (reentry_counter < REENTRY_MAX) {
+ if (reentry_counter <= REENTRY_MAX) {
g_object_set_qdata (G_OBJECT (queue_file),
fs->priv->quark_reentry_counter,
GINT_TO_POINTER (reentry_counter + 1));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]