schema: Make the fetch of the schema version fast
authorAndrew Bartlett <abartlet@samba.org>
Mon, 4 Jul 2016 02:05:46 +0000 (14:05 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 6 Jul 2016 13:35:17 +0000 (15:35 +0200)
commitbad502fd86185dc15d58c753baacd4cb3d03c733
tree39c6d045f147ba40d7d2f779c1531446d1403fab
parent3175d5f4bfb399049ad6b8da2a1d578620b25802
schema: Make the fetch of the schema version fast

Use the tdb_seqnum() to avoid needing locks to check if the schema has not changed

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
source4/dsdb/samdb/ldb_modules/partition_metadata.c
source4/dsdb/samdb/ldb_modules/schema_load.c