s4:partition LDB module - add some comments
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Sun, 6 Mar 2011 14:55:45 +0000 (15:55 +0100)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Thu, 10 Mar 2011 10:12:04 +0000 (11:12 +0100)
source4/dsdb/samdb/ldb_modules/partition.c

index 95ae0dde94224e6d7b00347aa0b965489120bfd9..c54fe4ff974ec904724a7321c64d1597f25a5af9 100644 (file)
@@ -398,6 +398,8 @@ static int partition_replicate(struct ldb_module *module, struct ldb_request *re
        struct dsdb_partition *partition;
        struct partition_private_data *data = talloc_get_type(ldb_module_get_private(module),
                                                              struct partition_private_data);
+
+       /* if we aren't initialised yet go further */
        if (!data || !data->partitions) {
                return ldb_next_request(module, req);
        }
@@ -468,7 +470,8 @@ static int partition_search(struct ldb_module *module, struct ldb_request *req)
        unsigned int i, j;
        int ret;
        bool domain_scope = false, phantom_root = false;
-       
+
+       /* see if we are still up-to-date */
        ret = partition_reload_if_required(module, data, req);
        if (ret != LDB_SUCCESS) {
                return ret;