diff options
author | Matthieu Patou <mat@matws.net> | 2013-01-26 23:42:10 -0800 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2013-05-23 20:26:07 +1000 |
commit | fe85bc1fb9ab2f891a9fd46bd8e00325622d39cf (patch) | |
tree | a0e2d5cebb75470477e36ff356a727519809b055 /source4/dsdb/schema/schema.h | |
parent | c524be17815e92ce9fcdd0565e76b026e483cc9d (diff) | |
download | samba-fe85bc1fb9ab2f891a9fd46bd8e00325622d39cf.tar.gz samba-fe85bc1fb9ab2f891a9fd46bd8e00325622d39cf.tar.bz2 samba-fe85bc1fb9ab2f891a9fd46bd8e00325622d39cf.zip |
dsdb-schema: make deduplication of class and schema possible (bug #8680)
When a class or an attribute is replicated it might already exists in
the existing schema, so while replicating the new version of this object
we want to get rid of the old version of the object is the current
validating schema so that we don't end up having duplicates.
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Matthieu Patou <mat@matws.net>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/dsdb/schema/schema.h')
-rw-r--r-- | source4/dsdb/schema/schema.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/dsdb/schema/schema.h b/source4/dsdb/schema/schema.h index 66df1c5f75..538b858123 100644 --- a/source4/dsdb/schema/schema.h +++ b/source4/dsdb/schema/schema.h @@ -221,6 +221,11 @@ struct dsdb_schema { struct dsdb_attribute *attributes; struct dsdb_class *classes; + struct dsdb_attribute **attributes_to_remove; + uint32_t attributes_to_remove_size; + struct dsdb_class **classes_to_remove; + uint32_t classes_to_remove_size; + /* lists of classes sorted by various attributes, for faster access */ uint32_t num_classes; |