[tracker/binary-log-2: 41/46] libtracker-data: Replay with timestamps from journal



commit 6181b9033f57e4322d09071c12137ef043d94107
Author: Jürg Billeter <j bitron ch>
Date:   Fri Jan 8 14:18:53 2010 +0100

    libtracker-data: Replay with timestamps from journal

 src/libtracker-data/tracker-data-manager.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index ebdb1e6..6bcc46a 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -431,7 +431,7 @@ replay_journal (void)
 					                              "VALUES (?, ?, ?, 0, 1)");
 			tracker_db_statement_bind_int (stmt, 0, id);
 			tracker_db_statement_bind_text (stmt, 1, uri);
-			tracker_db_statement_bind_int64 (stmt, 2, (gint64) time (NULL));
+			tracker_db_statement_bind_int64 (stmt, 2, tracker_db_journal_reader_get_time ());
 			tracker_db_statement_execute (stmt, &error);
 		} else if (type == TRACKER_DB_JOURNAL_START_TRANSACTION) {
 			tracker_data_begin_replay_transaction ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]