[dovecot-cvs] dovecot/src/lib-storage/index index-storage.c, 1.111, 1.112

tss at dovecot.org tss at dovecot.org
Sun May 13 19:53:44 EEST 2007


Update of /var/lib/cvs/dovecot/src/lib-storage/index
In directory talvi:/tmp/cvs-serv20293/lib-storage/index

Modified Files:
	index-storage.c 
Log Message:
Removed mail_index_get_last_error() and MAIL_INDEX_ERROR_*. All the index
errors are internal errors.



Index: index-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/index-storage.c,v
retrieving revision 1.111
retrieving revision 1.112
diff -u -d -r1.111 -r1.112
--- index-storage.c	17 Apr 2007 16:03:47 -0000	1.111
+++ index-storage.c	13 May 2007 16:53:42 -0000	1.112
@@ -410,15 +410,7 @@
 
 void mail_storage_set_index_error(struct index_mailbox *ibox)
 {
-	switch (mail_index_get_last_error(ibox->index)) {
-	case MAIL_INDEX_ERROR_NONE:
-	case MAIL_INDEX_ERROR_INTERNAL:
-		mail_storage_set_internal_error(ibox->box.storage);
-		break;
-	case MAIL_INDEX_ERROR_DISKSPACE:
-		mail_storage_set_error(ibox->box.storage, "Out of disk space");
-		break;
-	}
+	mail_storage_set_internal_error(ibox->box.storage);
 
 	mail_index_view_unlock(ibox->view);
 	mail_index_reset_error(ibox->index);



More information about the dovecot-cvs mailing list