summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-03-29 06:19:44 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:11:19 -0500
commit64ad915111c685e203b26b0d0e669714a764a832 (patch)
tree05afd1961b5557eb2835702289c2186b2f409a4c
parente760bd37b2f3fd135de429e640942ae7aecc7c91 (diff)
downloadsamba-64ad915111c685e203b26b0d0e669714a764a832.tar.gz
samba-64ad915111c685e203b26b0d0e669714a764a832.tar.bz2
samba-64ad915111c685e203b26b0d0e669714a764a832.zip
r6109: nicer way to handle compression in the torture test
metze (This used to be commit a3cec189e1f5d137ba2f2829def03b060b59f0e2)
-rw-r--r--source4/torture/rpc/drsuapi.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/source4/torture/rpc/drsuapi.c b/source4/torture/rpc/drsuapi.c
index f1d7e04b29..f76654be77 100644
--- a/source4/torture/rpc/drsuapi.c
+++ b/source4/torture/rpc/drsuapi.c
@@ -923,11 +923,10 @@ static BOOL test_DsGetNCChanges(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
r.in.req.req5.highwatermark.reserved_usn = 0;
r.in.req.req5.highwatermark.highest_usn = 0;
r.in.req.req5.uptodateness_vector = NULL;
- r.in.req.req5.replica_flags = 0
-#if 0
- | DRSUAPI_DS_REPLICA_NEIGHBOUR_COMPRESS_CHANGES
-#endif
- ;
+ r.in.req.req5.replica_flags = 0;
+ if (lp_parm_bool(-1, "drsuapi","compression", False)) {
+ r.in.req.req5.replica_flags |= DRSUAPI_DS_REPLICA_NEIGHBOUR_COMPRESS_CHANGES;
+ }
r.in.req.req5.unknown2 = 0;
r.in.req.req5.unknown3 = 0;
r.in.req.req5.unknown4 = 0;