summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-09-12 12:08:34 +1000
committerAndrew Tridgell <tridge@samba.org>2009-09-12 12:08:34 +1000
commit0819e79c4fdbd937e4b9516a1ff2ed8439cc8830 (patch)
treeb0fa931885b2ff8a2f84adcbf6fc571800d79f7b /source4
parentb00518cf7a9d82e92309c66462f7049e185342c5 (diff)
downloadsamba-0819e79c4fdbd937e4b9516a1ff2ed8439cc8830.tar.gz
samba-0819e79c4fdbd937e4b9516a1ff2ed8439cc8830.tar.bz2
samba-0819e79c4fdbd937e4b9516a1ff2ed8439cc8830.zip
s4-drs: spelling fix, and simpler search expression
uSNChanged>=N is good enough, and offers a possibility of a simple optimisation where the partition module could look for that expression and check the partitions sequence number, then avoid searching a partition that doesn't have any records with a larger uSN.
Diffstat (limited to 'source4')
-rw-r--r--source4/rpc_server/drsuapi/getncchanges.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/rpc_server/drsuapi/getncchanges.c b/source4/rpc_server/drsuapi/getncchanges.c
index 725a380f89..7183b2f45b 100644
--- a/source4/rpc_server/drsuapi/getncchanges.c
+++ b/source4/rpc_server/drsuapi/getncchanges.c
@@ -315,7 +315,7 @@ WERROR dcesrv_drsuapi_DsGetNCChanges(struct dcesrv_call_state *dce_call, TALLOC_
ncRoot_dn = ldb_dn_new(mem_ctx, sam_ctx, ncRoot->dn);
ret = drsuapi_search_with_extended_dn(sam_ctx, mem_ctx, &site_res,
ncRoot_dn, LDB_SCOPE_SUBTREE, attrs,
- "(&(uSNChanged>=%llu)(objectClass=*))",
+ "uSNChanged>=%llu",
(unsigned long long)r->in.req->req8.highwatermark.highest_usn);
if (ret != LDB_SUCCESS) {
return WERR_DS_DRA_INTERNAL_ERROR;
@@ -390,7 +390,7 @@ WERROR dcesrv_drsuapi_DsGetNCChanges(struct dcesrv_call_state *dce_call, TALLOC_
}
- DEBUG(4,("DsGetNSChanges with uSNChanged >= %llu on %s gave %u objects\n",
+ DEBUG(4,("DsGetNCChanges with uSNChanged >= %llu on %s gave %u objects\n",
(unsigned long long)r->in.req->req8.highwatermark.highest_usn,
ncRoot->dn, r->out.ctr->ctr6.object_count));