diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-03-06 15:55:45 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-03-10 11:12:04 +0100 |
commit | 851396a627ed2c09c5e309fc72cfa2a10c3c3726 (patch) | |
tree | 85f1136fedda5f38cf181e07a08565748b9a1e72 /source4/dsdb/samdb/ldb_modules | |
parent | 79c65cc99b30af092608fa758a748ca0301ddf33 (diff) | |
download | samba-851396a627ed2c09c5e309fc72cfa2a10c3c3726.tar.gz samba-851396a627ed2c09c5e309fc72cfa2a10c3c3726.tar.bz2 samba-851396a627ed2c09c5e309fc72cfa2a10c3c3726.zip |
s4:partition LDB module - add some comments
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/partition.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/partition.c b/source4/dsdb/samdb/ldb_modules/partition.c index 95ae0dde94..c54fe4ff97 100644 --- a/source4/dsdb/samdb/ldb_modules/partition.c +++ b/source4/dsdb/samdb/ldb_modules/partition.c @@ -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; |