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

Re: How to get the Directory's last modification time?



>
>> Bruno Negrão <vpopmail@engepel.com.br> writes:
>>
>>> Hi all,
>>>
>>> Is there a way to know when the directory was last modified?
>>> Instead of reading all the modification times of all the entries, is
>>> there a way to quickly ask to the directory when it was last modified?
>>
>> ldapsearch -b cn=modify,cn=operations,cn=monitor -s base \
>> modifyTimestamp
>
> That's usually equal to the DSA's startup time, i.e. the modifyTimestamp
> and modifiersName are not touched as a consequence to internal
> modifications to back-monitor entries.  It is yet debated if they should,
> see related -devel threads,

this is correct

> and, in case, the code would need plenty of
> work because at present only read locking is implemented (i.e. multiple
> threads can simultaneously read the contents of an entry).

this is not correct: plain mutexes are used, so actually all readers are
treated as writers and the monitor backend serializes read access to
entries.  This might change.

p.

-- 
Pierangelo Masarati
mailto:pierangelo.masarati@sys-net.it


    SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497