[tracker/ttl: 8/8] libtracker-db: Do not consider end of journal an error
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/ttl: 8/8] libtracker-db: Do not consider end of journal an error
- Date: Thu, 18 Mar 2010 08:55:02 +0000 (UTC)
commit ed15da8edaf2e080eb40df536d00aca39df1271f
Author: Jürg Billeter <j bitron ch>
Date: Thu Mar 18 09:52:18 2010 +0100
libtracker-db: Do not consider end of journal an error
src/libtracker-db/tracker-db-journal.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-db/tracker-db-journal.c b/src/libtracker-db/tracker-db-journal.c
index 1da00cf..d17dbae 100644
--- a/src/libtracker-db/tracker-db-journal.c
+++ b/src/libtracker-db/tracker-db-journal.c
@@ -790,8 +790,9 @@ tracker_db_journal_reader_next (GError **error)
/* Check the end is not before where we currently are */
if (reader.current >= reader.end) {
- g_set_error (error, TRACKER_DB_JOURNAL_ERROR, 0,
- "End of journal reached");
+ /* Return FALSE as there is no further entry but
+ * do not set error as it's not an error case.
+ */
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]