s4-schema: keep track of the timestamp of the most recently changed/created object
[ddiss/samba.git] / source4 / dsdb / schema / schema_init.c
index 2db708d2df5e74011bc4dece315943fab55c24f4..c0318cf9c43fc2b1f19bb7e9d9cc61731151c648 100644 (file)
@@ -807,6 +807,7 @@ int dsdb_load_ldb_results_into_schema(TALLOC_CTX *mem_ctx, struct ldb_context *l
 {
        unsigned int i;
 
+       schema->ts_last_change = 0;
        for (i=0; i < attrs_class_res->count; i++) {
                WERROR status = dsdb_schema_set_el_from_ldb_msg(ldb, schema, attrs_class_res->msgs[i]);
                if (!W_ERROR_IS_OK(status)) {