[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
slurpd one-shot mode not working well with reject files (ITS#3329)
Full_Name: Clément OUDOT
Version: 2.2.11
OS: Linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (194.98.7.155)
I try to use slurpd one-shot mode with a reject file (as described in
http://www.openldap.org/doc/admin22/replication.html#Advanced%20slurpd%20Operation)
:
$ slurpd -r slave:0.rej -o
With this output :
Processing in one-shot mode:
3 total replication records in file,
3 replication records to process.
The problem is that no modifications were sent to the slave. With debug I read
those messages :
[...]
Retrieved state information for slave:0 (timestamp 1095152703.0)
Processing in one-shot mode:
3 total replication records in file,
3 replication records to process.
begin replication thread for slave:0
Replica slave:0, skip repl record for ou=TestsIntegration,o=test,c=fr (old)
Replica slave:0, skip repl record for
cn=Utilisateur1,ou=TestsIntegration,o=test,c=fr (old)
Replica slave:0, skip repl record for
cn=Utilisateur2,ou=TestsIntegration,o=test,c=fr (old)
end replication thread for slave:0
slurpd: terminated.
All rejected entries are marked as old because the time in the status is the
time of the last rejected entries. So if I want to use the one-shot mode, I have
to change by hand the time in the slurpd.status file or all the times in the
reject file.
A solution could be to patch slurpd so that it does not take care of time when
using the one-shot mode (command line option -o). If no patch is done, the
OpenLDAP 2.2 Administrator's Guide should be updated to specify the modification
of the slurpd.status file before processing one-shot mode with a reject file.
--
Clément OUDOT - Développeur
LINAGORA
30, rue Saint Augustin
75002 PARIS
Tél : 01 58 18 68 28
Fax : 01 58 18 68 29
http://www.linagora.com
http://www.linagora.org