Delete the MS_FINALISE mirror state

It's not being used for anything.
This commit is contained in:
Alex Young
2012-07-15 18:40:50 +01:00
parent e77234c6b1
commit 5794913fdf
3 changed files with 0 additions and 3 deletions

View File

@@ -250,7 +250,6 @@ void control_write_mirror_response( enum mirror_state mirror_state, int client_f
write_socket( "1: Remote size does not match local size" ); write_socket( "1: Remote size does not match local size" );
break; break;
case MS_GO: case MS_GO:
case MS_FINALISE:
case MS_DONE: /* Yes, I know we know better, but it's simpler this way */ case MS_DONE: /* Yes, I know we know better, but it's simpler this way */
write_socket( "0: Mirror started" ); write_socket( "0: Mirror started" );
break; break;

View File

@@ -386,7 +386,6 @@ void mirror_run( struct server *serve )
if (written < mirror_last_pass_after_bytes_written) { break; } if (written < mirror_last_pass_after_bytes_written) { break; }
} }
mirror_set_state( serve->mirror, MS_FINALISE );
server_lock_io( serve ); server_lock_io( serve );
{ {
if ( mirror_pass( serve, 0, &written ) && if ( mirror_pass( serve, 0, &written ) &&

View File

@@ -50,7 +50,6 @@ enum mirror_state {
MS_UNKNOWN, MS_UNKNOWN,
MS_INIT, MS_INIT,
MS_GO, MS_GO,
MS_FINALISE,
MS_DONE, MS_DONE,
MS_FAIL_CONNECT, MS_FAIL_CONNECT,
MS_FAIL_REJECTED, MS_FAIL_REJECTED,