dovecot-2.2: fts-lucene: Compiling fix for earlier change.
dovecot at dovecot.org
dovecot at dovecot.org
Thu Aug 21 12:52:35 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/9e825d5b0dd0
changeset: 17743:9e825d5b0dd0
user: Timo Sirainen <tss at iki.fi>
date: Thu Aug 21 15:52:14 2014 +0300
description:
fts-lucene: Compiling fix for earlier change.
diffstat:
src/plugins/fts-lucene/lucene-wrapper.cc | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (38 lines):
diff -r b0c301f2d616 -r 9e825d5b0dd0 src/plugins/fts-lucene/lucene-wrapper.cc
--- a/src/plugins/fts-lucene/lucene-wrapper.cc Thu Aug 21 14:51:11 2014 +0200
+++ b/src/plugins/fts-lucene/lucene-wrapper.cc Thu Aug 21 15:52:14 2014 +0300
@@ -8,6 +8,7 @@
#include "hex-binary.h"
#include "ioloop.h"
#include "unlink-directory.h"
+#include "ioloop.h"
#include "mail-index.h"
#include "mail-search.h"
#include "mail-namespace.h"
@@ -100,6 +101,8 @@
static bool textcat_broken = FALSE;
static int textcat_refcount = 0;
+static void lucene_handle_error(struct lucene_index *index, CLuceneError &err,
+ const char *msg);
static void rescan_clear_unseen_mailboxes(struct lucene_index *index,
struct rescan_context *rescan_ctx);
@@ -268,7 +271,7 @@
err.number() == CL_ERR_IO)) {
/* delete corrupted index. most IO errors are also about
missing files and other such corruption.. */
- if (unlink_directory(index->path, 0) < 0 &&
+ if (unlink_directory(index->path, (enum unlink_directory_flags)0) < 0 &&
errno != ENOENT)
i_error("unlink_directory(%s) failed: %m", index->path);
rescan_clear_unseen_mailboxes(index, NULL);
@@ -414,7 +417,7 @@
return ret;
/* settings changed, rebuild index */
- if (unlink_directory(index->path, 0) < 0) {
+ if (unlink_directory(index->path, (enum unlink_directory_flags)0) < 0) {
i_error("unlink_directory(%s) failed: %m", index->path);
ret = -1;
} else {
More information about the dovecot-cvs
mailing list