]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dsync: Log an error if dsync server sends invalid reply for FINISH.
authorTimo Sirainen <tss@iki.fi>
Mon, 12 Jul 2010 14:30:55 +0000 (15:30 +0100)
committerTimo Sirainen <tss@iki.fi>
Mon, 12 Jul 2010 14:30:55 +0000 (15:30 +0100)
src/dsync/dsync-proxy-client.c

index 260e4e9c7cbd2974bac01e925dfca30ec1b21cf5..0384bbc64f3f290dd58e0402a210141cb47825d0 100644 (file)
@@ -249,8 +249,12 @@ proxy_client_worker_next_finish(struct proxy_client_dsync_worker *worker,
 
        if (strcmp(line, "changes") == 0)
                worker->worker.unexpected_changes = TRUE;
-       else if (strcmp(line, "ok") != 0)
+       else if (strcmp(line, "fail") == 0)
                success = FALSE;
+       else if (strcmp(line, "ok") != 0) {
+               i_error("Unexpected finish reply: %s", line);
+               success = FALSE;
+       }
                
        request->callback.finish(success, request->context);
 }