diff src/doveadm/dsync/dsync-ibc-stream.c @ 18394:89cbb9347de7

dsync: Don't try to use the new "finish" state with old dsync versions.
author Timo Sirainen <tss@iki.fi>
date Wed, 01 Apr 2015 01:16:57 +0900
parents cf74e2179dce
children 11b107c8dc05
line wrap: on
line diff
--- a/src/doveadm/dsync/dsync-ibc-stream.c	Sat Mar 28 01:23:47 2015 +0200
+++ b/src/doveadm/dsync/dsync-ibc-stream.c	Wed Apr 01 01:16:57 2015 +0900
@@ -126,7 +126,8 @@
 	},
 	{ .name = "finish",
 	  .chr = 'F',
-	  .optional_keys = "error mail_error"
+	  .optional_keys = "error mail_error",
+	  .min_minor_version = DSYNC_PROTOCOL_MINOR_HAVE_FINISH
 	},
 	{ .name = "mailbox_cache_field",
 	  .chr = 'c',