diff src/doveadm/dsync/dsync-brain.c @ 16454:5593d6129712

dsync: If unexpected changes happened during sync, log a warning and exit with code 2. This was done by v2.1 dsync, but the code got temporarily lost in v2.2.
author Timo Sirainen <tss@iki.fi>
date Wed, 05 Jun 2013 17:14:49 +0300
parents 4883a8e1db13
children 5ed2f41431c4
line wrap: on
line diff
--- a/src/doveadm/dsync/dsync-brain.c	Wed Jun 05 16:40:01 2013 +0300
+++ b/src/doveadm/dsync/dsync-brain.c	Wed Jun 05 17:14:49 2013 +0300
@@ -513,3 +513,8 @@
 {
 	return brain->failed;
 }
+
+bool dsync_brain_has_unexpected_changes(struct dsync_brain *brain)
+{
+	return brain->changes_during_sync;
+}