[tracker/binary-log-2] libtracker-db: Do not use O_SYNC for journal



commit 7ffeb744d602e5c177dc00c5548fbee405dbdd00
Author: Jürg Billeter <j bitron ch>
Date:   Fri Jan 8 14:23:59 2010 +0100

    libtracker-db: Do not use O_SYNC for journal
    
    We call fsync where needed.

 src/libtracker-db/tracker-db-journal.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-db/tracker-db-journal.c b/src/libtracker-db/tracker-db-journal.c
index 97cf4f4..69227f7 100644
--- a/src/libtracker-db/tracker-db-journal.c
+++ b/src/libtracker-db/tracker-db-journal.c
@@ -213,9 +213,8 @@ tracker_db_journal_init (const gchar *filename)
 		                                            NULL);
 	}
 
-	/* FIXME: Should we use O_SYNC? and O_DIRECT? */
 	mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP;
-	flags = O_WRONLY | O_APPEND | O_CREAT | O_SYNC;
+	flags = O_WRONLY | O_APPEND | O_CREAT;
 	writer.journal = g_open (writer.journal_filename, flags, mode);
 
 	if (writer.journal == -1) {



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