[Date Prev][Date Next] [Chronological] [Thread] [Top]

slurpd in one shot mode, empty replog file (ITS#798)



Full_Name: Adam Wilkshire
Version: 1.2.11
OS: Solaris.
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (193.254.158.2)


I found the following problem (and applied the fix to our local source code)
The problem is quite simply:
invoke slurpd in one shot mode. Give it an empty replog file. 
And wait..... And wait .......
It is a problem in the function Ri_process() in the ri.c file.
It does not check the one shot mode when the first entry is obtained (although
it does in the main loop).
This means an infinite wait for empty replication files. 
The fix is to apply the logic given in the main loop of this function to the
"get the first
entry" code, ie check if its in one shot mode before waiting.

Regards,
Adam Wilkshire