comparison src/lib-storage/index/maildir/maildir-keywords.c @ 6857:41911abe6fa7 HEAD

NFS cache flushing updates.
author Timo Sirainen <tss@iki.fi>
date Sun, 25 Nov 2007 15:47:36 +0200
parents dbab5e592577
children 414c9d631a81
comparison
equal deleted inserted replaced
6856:a249d916f6e6 6857:41911abe6fa7
115 115
116 /* Remember that we rely on uidlist file locking in here. That's why 116 /* Remember that we rely on uidlist file locking in here. That's why
117 we rely on stat()'s timestamp and don't bother handling ESTALE 117 we rely on stat()'s timestamp and don't bother handling ESTALE
118 errors. */ 118 errors. */
119 119
120 if ((mk->storage->flags & MAIL_STORAGE_FLAG_NFS_FLUSH_STORAGE) != 0) 120 if ((mk->storage->flags & MAIL_STORAGE_FLAG_NFS_FLUSH_STORAGE) != 0) {
121 nfs_flush_attr_cache_unlocked(mk->path); 121 /* file is updated only by replacing it, no need to flush
122 attribute cache */
123 nfs_flush_file_handle_cache(mk->path);
124 }
122 125
123 if (nfs_safe_stat(mk->path, &st) < 0) { 126 if (nfs_safe_stat(mk->path, &st) < 0) {
124 if (errno == ENOENT) { 127 if (errno == ENOENT) {
125 maildir_keywords_clear(mk); 128 maildir_keywords_clear(mk);
126 mk->synced = TRUE; 129 mk->synced = TRUE;