s4/drs: re-implement 'renaming' object replication
authorKamen Mazdrashki <kamenim@samba.org>
Mon, 28 Jun 2010 01:33:40 +0000 (04:33 +0300)
committerKamen Mazdrashki <kamenim@samba.org>
Mon, 28 Jun 2010 01:43:29 +0000 (04:43 +0300)
commit431386f3278bfa6fa9b74db9a8a40fd300621c2b
tree3d04240439438447dc11fccc192f30c0492cfb09
parent46556432c067bfd651e79ecd370ff3d18ae83bd7
s4/drs: re-implement 'renaming' object replication

We should rename objects only after we make sure, that
changes on the partner DC are newer than what we have.
This fixes a bug, when we have following situation with 2 DCs:
- we have an object O on the two DCs
- we rename (delete) object O on DC1
- DC1 replicates from DC2
In the above scenario, object O will be renamed back
to its original name (i.e. it will be restored).

Now, we check that DC2 state is older than what we have,
so nothing happens with object's DN.
source4/dsdb/samdb/ldb_modules/repl_meta_data.c