]> 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)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 3 Jan 2013 18:11:45 +0000 (10:11 -0800)
commita1ca3fec72205a83be6e433b0352dbc2121f6d10
tree6594cd116db1882db265f54e96fefed464077cdb
parent4aed59cafd4815ea9d849b0031ebab54a0d74536
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