This controls whether single object replication is to be used.
This only has an effect when at least one object dn is given
on the commandline.
NOTE: Now the default is to use normal replication with uptodateness
vectors and use object dns given on the command line as a positive
write filter. Single object replication is only performed when this
new switch is specified.
Michael
(This used to be commit
0f81111ea8c049eb60f98d4939e520a5a562d2e6)
{"tallocreport", 0, POPT_ARG_NONE, &c->do_talloc_report},
/* Options for 'net rpc vampire (keytab)' */
{"force-full-repl", 0, POPT_ARG_NONE, &c->opt_force_full_repl},
+ {"single-obj-repl", 0, POPT_ARG_NONE, &c->opt_single_obj_repl},
POPT_COMMON_SAMBA
{ 0, 0, 0, 0}
int opt_testmode;
bool opt_kerberos;
int opt_force_full_repl;
+ int opt_single_obj_repl;
int opt_have_ip;
struct sockaddr_storage opt_dest_ip;
if (argc >= 2) {
ctx->object_dns = &argv[1];
ctx->object_count = argc - 1;
- ctx->single_object_replication = true;
+ ctx->single_object_replication = c->opt_single_obj_repl ? true
+ : false;
}
ctx->cli = pipe_hnd;