diff options
author | Andrew Bartlett <abartlet@samba.org> | 2016-07-09 07:47:15 +1200 |
---|---|---|
committer | Garming Sam <garming@samba.org> | 2016-07-12 23:24:13 +0200 |
commit | ba8e8687bd978092d8f74f283d008b9a5b3ff122 (patch) | |
tree | 5e3ceee6a8ccc9483b1bbcfa984e098229cf3bbb /source4/dsdb/samdb | |
parent | b9b64438d5198b564f5c3dc5699a8cd7d4f04f5f (diff) | |
download | samba-ba8e8687bd978092d8f74f283d008b9a5b3ff122.tar.gz |
dsdb: Avoid search on * in replmd_replicated_apply_next()
A search on * can be quite expensive if we have to post-process any of the results
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/repl_meta_data.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c index 9a1ff166b30..c6dc6c663fe 100644 --- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c +++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c @@ -5296,9 +5296,10 @@ static int replmd_replicated_apply_next(struct replmd_replicated_request *ar) char *tmp_str; char *filter; struct ldb_request *search_req; - static const char *attrs[] = { "*", "parentGUID", "instanceType", + static const char *attrs[] = { "repsFrom", "replUpToDateVector", + "parentGUID", "instanceType", "replPropertyMetaData", "nTSecurityDescriptor", - NULL }; + "isDeleted", NULL }; struct GUID_txt_buf guid_str_buf; if (ar->index_current >= ar->objs->num_objects) { |