diff options
author | Andrew Bartlett <abartlet@samba.org> | 2016-05-04 17:01:15 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2016-07-06 15:35:17 +0200 |
commit | 2a9060641757937ad764685ec35507629ce6283e (patch) | |
tree | 92291e0e8b6fd2f60f2710df5d3bdc7e6e0ef054 /source4/dsdb/schema/schema.h | |
parent | 5abcdd56ba4f1b61b9421c81caa491e70c4881c4 (diff) | |
download | samba-2a9060641757937ad764685ec35507629ce6283e.tar.gz |
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 <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Diffstat (limited to 'source4/dsdb/schema/schema.h')
-rw-r--r-- | source4/dsdb/schema/schema.h | 5 |
1 files changed, 0 insertions, 5 deletions
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). |