Commit 59ab0f61 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(end_of_atomic): Handle param.saved_items_per_call.

parent 2b5be8d2
/* /*
* $Id: disk-end-of-atomic.c,v 0.19 1999/05/24 09:38:26 ceder Exp $ * $Id: disk-end-of-atomic.c,v 0.20 1999/06/19 18:09:52 ceder Exp $
* Copyright (C) 1991-1994, 1998-1999 Lysator Academic Computer Association. * Copyright (C) 1991-1994, 1998-1999 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
static const char * static const char *
rcsid = "$Id: disk-end-of-atomic.c,v 0.19 1999/05/24 09:38:26 ceder Exp $"; rcsid = "$Id: disk-end-of-atomic.c,v 0.20 1999/06/19 18:09:52 ceder Exp $";
#include "rcs.h" #include "rcs.h"
USE(rcsid); USE(rcsid);
...@@ -67,6 +67,7 @@ end_of_atomic( Bool idle ) ...@@ -67,6 +67,7 @@ end_of_atomic( Bool idle )
{ {
int timeout = param.timeout; int timeout = param.timeout;
static int limit = 0; static int limit = 0;
int parts_left;
free_tmp(); free_tmp();
...@@ -81,8 +82,10 @@ end_of_atomic( Bool idle ) ...@@ -81,8 +82,10 @@ end_of_atomic( Bool idle )
if ( garb_text() == FALSE ) if ( garb_text() == FALSE )
timeout = param.garbtimeout; timeout = param.garbtimeout;
if ( sync_part() == FALSE ) for (parts_left = param.saved_items_per_call; parts_left > 0; --parts_left)
timeout = param.synctimeout; {
if (sync_part() == TRUE)
return timeout; return timeout;
}
return param.synctimeout;
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment