dovecot-2.0: lib-index: Put all syscall error logging through on...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Aug 18 18:21:11 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/038f25c02bb7
changeset: 12008:038f25c02bb7
user: Timo Sirainen <tss at iki.fi>
date: Wed Aug 18 16:21:04 2010 +0100
description:
lib-index: Put all syscall error logging through one function.
diffstat:
src/lib-index/mail-index.c | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
diffs (22 lines):
diff -r 8c46bf2c5176 -r 038f25c02bb7 src/lib-index/mail-index.c
--- a/src/lib-index/mail-index.c Wed Aug 18 15:17:40 2010 +0100
+++ b/src/lib-index/mail-index.c Wed Aug 18 16:21:04 2010 +0100
@@ -812,16 +812,8 @@
int mail_index_set_syscall_error(struct mail_index *index,
const char *function)
{
- i_assert(function != NULL);
-
- if (ENOSPACE(errno)) {
- index->nodiskspace = TRUE;
- if ((index->flags & MAIL_INDEX_OPEN_FLAG_NEVER_IN_MEMORY) == 0)
- return -1;
- }
-
- return mail_index_set_error(index, "%s failed with index file %s: %m",
- function, index->filepath);
+ return mail_index_file_set_syscall_error(index, index->filepath,
+ function);
}
int mail_index_file_set_syscall_error(struct mail_index *index,
More information about the dovecot-cvs
mailing list