s4-repl: on a failed request, clear the current ptr
authorAndrew Tridgell <tridge@samba.org>
Mon, 26 Apr 2010 11:48:29 +0000 (21:48 +1000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 27 Apr 2010 00:38:58 +0000 (10:38 +1000)
this prevents the queue being stuck on failure

source4/dsdb/repl/drepl_out_pull.c

index 101214609af2b9caa96c3250857702a0403bf487..329b298d94b77f4f17846ecdd4b2ba17fdb83d79 100644 (file)
@@ -171,6 +171,7 @@ void dreplsrv_run_pending_ops(struct dreplsrv_service *s)
 
                rf->result_last_attempt = WERR_NOMEM;
                rf->consecutive_sync_failures++;
+               s->ops.current = NULL;
 
                DEBUG(1,("dreplsrv_op_pull_source(%s/%s) failures[%u]\n",
                        win_errstr(rf->result_last_attempt),