File kdepim-trinity-remove-unnecessary-sync.patch of Package kdepim3

From 82d4a938ce57d8611e1ef2e26924bb4367483b0c Mon Sep 17 00:00:00 2001
From: Timothy Pearson <kb9vqf@pearsoncomputing.net>
Date: Sat, 30 Jun 2012 03:41:45 +0000
Subject: Disable unneccesary fsync() in cached IMAP handler

---
diff --git a/kmail/kmfoldercachedimap.cpp b/kmail/kmfoldercachedimap.cpp
index 72f1113..e7009a2 100644
--- a/kmail/kmfoldercachedimap.cpp
+++ b/kmail/kmfoldercachedimap.cpp
@@ -478,7 +478,7 @@ int KMFolderCachedImap::writeUidCache()
     str << lastUid() << endl;
     uidcache.flush();
     if ( uidcache.status() == IO_Ok ) {
-      fsync( uidcache.handle() ); /* this is probably overkill */
+      // fsync( uidcache.handle() ); /* this is probably overkill */
       uidcache.close();
       if ( uidcache.status() == IO_Ok )
         return 0;
--
cgit v0.9.0.2-39-g756e
openSUSE Build Service is sponsored by