]> git.sur5r.net Git - openldap/commit
Get MDB txn before acquiring a CSN
authorHoward Chu <hyc@openldap.org>
Thu, 13 Dec 2012 15:13:39 +0000 (07:13 -0800)
committerHoward Chu <hyc@openldap.org>
Thu, 13 Dec 2012 15:13:39 +0000 (07:13 -0800)
commitd3087229d5c8a617b97a17514c1cf0b1019eaf43
tree49d3f346701440482dea0e52bb20cb539a0a3999
parent9ed5ca4f7a3e807fe3d105c34738095b0e891f5d
Get MDB txn before acquiring a CSN

Since MDB writes are fully serialized in txn_begin, we can use CSNs as
commit sequence numbers, not just change sequence numbers. This will
prevent most instances of out-of-order writes, so syncprov will almost
never need to transmit a change without a cookieCSN. (Out-of-order is
still possible, if the write was received via syncrepl.)
servers/slapd/back-mdb/add.c
servers/slapd/back-mdb/delete.c
servers/slapd/back-mdb/modify.c
servers/slapd/back-mdb/modrdn.c