diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-08-22 22:08:36 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-08-23 15:02:25 +0200 |
commit | d1eac79690d0fe8f8a5a78bcb83a6b4783279e27 (patch) | |
tree | e330820d20cb00bc4035cbb30e1ad32ba5344f85 /source4/dsdb/schema/schema.h | |
parent | a58ac39a5ae97b3aebfde10466798b41baccaacf (diff) | |
download | samba-d1eac79690d0fe8f8a5a78bcb83a6b4783279e27.tar.gz samba-d1eac79690d0fe8f8a5a78bcb83a6b4783279e27.tar.bz2 samba-d1eac79690d0fe8f8a5a78bcb83a6b4783279e27.zip |
s4-dsdb: Do not use a possibly-old loadparm context in schema reload
The loadparm context on the schema DB might have gone away already.
Pre-cache the schema refresh interval at load time to avoid worrying
about this.
Andrew Bartlett
Diffstat (limited to 'source4/dsdb/schema/schema.h')
-rw-r--r-- | source4/dsdb/schema/schema.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/dsdb/schema/schema.h b/source4/dsdb/schema/schema.h index 81ac129d5e..eb288e6bf9 100644 --- a/source4/dsdb/schema/schema.h +++ b/source4/dsdb/schema/schema.h @@ -247,6 +247,7 @@ struct dsdb_schema { 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). |