diff options
author | Kamen Mazdrashki <kamenim@samba.org> | 2010-12-18 05:29:20 +0200 |
---|---|---|
committer | Kamen Mazdrashki <kamenim@samba.org> | 2010-12-18 05:32:15 +0200 |
commit | 5bc0848fc73f96879fdb5d398272ead7fee39157 (patch) | |
tree | e404f3b9ed4adb0526c7a99f6f86111ffd3706e4 /source4/dsdb/schema | |
parent | 214b12973d71fc9c2b6221fe9f41d1e725e96612 (diff) | |
download | samba-5bc0848fc73f96879fdb5d398272ead7fee39157.tar.gz samba-5bc0848fc73f96879fdb5d398272ead7fee39157.tar.bz2 samba-5bc0848fc73f96879fdb5d398272ead7fee39157.zip |
s4-dsdb_schema: Copy info needed for Schema refresh in dsdb_schema_copy_shallow
Just 'refresh_fn' and 'loaded_from_module' are copied.
I left 'reload_seq_number' set to 0 intentionally, so that
this Schema cache will looks like a very old one to ,refresh_fn'.
This way, if this shallow copy is attached to LDB, it will be
refreshed as soon as possible by 'refresh_fn'.
Diffstat (limited to 'source4/dsdb/schema')
-rw-r--r-- | source4/dsdb/schema/schema_init.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/dsdb/schema/schema_init.c b/source4/dsdb/schema/schema_init.c index 00170a2d39..62111c5ed8 100644 --- a/source4/dsdb/schema/schema_init.c +++ b/source4/dsdb/schema/schema_init.c @@ -99,6 +99,10 @@ struct dsdb_schema *dsdb_schema_copy_shallow(TALLOC_CTX *mem_ctx, goto failed; } + /* leave reload_seq_number = 0 so it will be refresh ASAP */ + schema_copy->refresh_fn = schema->refresh_fn; + schema_copy->loaded_from_module = schema->loaded_from_module; + return schema_copy; failed: |