From 2a9060641757937ad764685ec35507629ce6283e Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 4 May 2016 17:01:15 +1200 Subject: dsdb: Remove 120 second delay and USN from schema refresh check We now refresh it once the schema changes, so that replication can proceed right away. We use the sequence number in the metadata.tdb. The previous commit added a cache for this value, protected by tdb_seqnum(). metadata.tdb is now opened at startup to provide this support. Note that while still supported, schemaUpdateNow is essentially rudundent: instead, to ensure we increment the sequence number correctly, we unify that check into repl_meta_data at the transaction close. Signed-off-by: Andrew Bartlett Reviewed-by: Garming Sam --- source4/dsdb/schema/schema.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'source4/dsdb/schema/schema.h') diff --git a/source4/dsdb/schema/schema.h b/source4/dsdb/schema/schema.h index 457d986e3d0..6c3581bb5e4 100644 --- a/source4/dsdb/schema/schema.h +++ b/source4/dsdb/schema/schema.h @@ -214,9 +214,6 @@ struct dsdb_schema { */ const char *schema_info; - /* We can also tell the schema version from the USN on the partition */ - uint64_t loaded_usn; - struct dsdb_attribute *attributes; struct dsdb_class *classes; @@ -251,8 +248,6 @@ struct dsdb_schema { /* Was this schema loaded from ldb (if so, then we will reload it when we detect a change in ldb) */ bool refresh_in_progress; time_t ts_last_change; - time_t last_refresh; - time_t refresh_interval; /* This 'opaque' is stored in the metadata and is used to check if the currently * loaded schema needs a reload because another process has signaled that it has been * requested to reload the schema (either due through DRS or via the schemaUpdateNow). -- cgit v1.2.1