dsdb: Do not refresh the schema using the wrong event context
commit791c38282d681c60eaedb47803b9043991f5950d
authorAndrew Bartlett <abartlet@samba.org>
Wed, 14 May 2014 08:12:03 +0000 (14 20:12 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 11 Jun 2014 08:18:26 +0000 (11 10:18 +0200)
tree55ad69a7a7f9f721eb42ef9f2e4789443bef2ce3
parent8327321225251e312ccbd06bbefa5ebf98099f34
dsdb: Do not refresh the schema using the wrong event context

What we now do is have the refresh function and module be on a
seperate object to the schema, only referring to the data and
not excuting on the original ldb and event loop.

That is, we never use another ldb context when calling the
refresh function, by binding the refresh handler to the
ldb and not the schema.

Andrew Bartlett

Change-Id: I5c323dda743cf5858badd01147fda6227599bc16
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source4/dsdb/samdb/ldb_modules/schema_load.c
source4/dsdb/samdb/samdb.c
source4/dsdb/schema/schema.h
source4/dsdb/schema/schema_init.c
source4/dsdb/schema/schema_set.c