diff src/doveadm/dsync/dsync-ibc-stream.c @ 15494:b7d8027a8f74

dsync: Fixed parsing mailbox state from remote dsync.
author Timo Sirainen <tss@iki.fi>
date Thu, 03 Jan 2013 22:53:18 +0200
parents fc6873897e8b
children 5d90e2aa1ba8
line wrap: on
line diff
--- a/src/doveadm/dsync/dsync-ibc-stream.c	Fri Dec 28 17:02:18 2012 +0200
+++ b/src/doveadm/dsync/dsync-ibc-stream.c	Thu Jan 03 22:53:18 2013 +0200
@@ -673,12 +673,12 @@
 		return DSYNC_IBC_RECV_RET_TRYAGAIN;
 	}
 	value = dsync_deserializer_decode_get(decoder, "last_common_uid");
-	if (str_to_uint32(value, &state_r->last_uidvalidity) < 0) {
+	if (str_to_uint32(value, &state_r->last_common_uid) < 0) {
 		dsync_ibc_input_error(ibc, decoder, "Invalid last_common_uid");
 		return DSYNC_IBC_RECV_RET_TRYAGAIN;
 	}
 	value = dsync_deserializer_decode_get(decoder, "last_common_modseq");
-	if (str_to_uint32(value, &state_r->last_uidvalidity) < 0) {
+	if (str_to_uint64(value, &state_r->last_common_modseq) < 0) {
 		dsync_ibc_input_error(ibc, decoder, "Invalid last_common_modseq");
 		return DSYNC_IBC_RECV_RET_TRYAGAIN;
 	}