diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-12-05 12:47:32 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:47:05 -0500 |
commit | 7dbe0e3199f9bd5c2cea1ae89e3929798f3b24c2 (patch) | |
tree | 0b09f0825cda6f69bf4571286f47fdbe4748da4f /source4/wrepl_server | |
parent | 82d0d26eaad7f067eb3221348653f47e5619119c (diff) | |
download | samba-7dbe0e3199f9bd5c2cea1ae89e3929798f3b24c2.tar.gz samba-7dbe0e3199f9bd5c2cea1ae89e3929798f3b24c2.tar.bz2 samba-7dbe0e3199f9bd5c2cea1ae89e3929798f3b24c2.zip |
r12072: fix sgroup,active,owned vs. sgroup,non-active case
metze
(This used to be commit 47ce4286dec3df9eb22ac2efde18af807ecf9cfa)
Diffstat (limited to 'source4/wrepl_server')
-rw-r--r-- | source4/wrepl_server/wrepl_apply_records.c | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/source4/wrepl_server/wrepl_apply_records.c b/source4/wrepl_server/wrepl_apply_records.c index fff8666684..0f9c24b7d8 100644 --- a/source4/wrepl_server/wrepl_apply_records.c +++ b/source4/wrepl_server/wrepl_apply_records.c @@ -500,6 +500,16 @@ _SA_MA_DI_U<1c> => NOT REPLACE _SA_MT_SI_U<1c> => NOT REPLACE _SA_MT_DI_U<1c> => NOT REPLACE +Test Replica vs. owned active: SGROUP vs. SGROUP tests +_SA_SA_DI_U<1c> => SGROUP_MERGE +_SA_SA_SI_U<1c> => SGROUP_MERGE +_SA_SA_SP_U<1c> => SGROUP_MERGE +_SA_SA_SB_U<1c> => SGROUP_MERGE +_SA_ST_DI_U<1c> => NOT REPLACE +_SA_ST_SI_U<1c> => NOT REPLACE +_SA_ST_SP_U<1c> => NOT REPLACE +_SA_ST_SB_U<1c> => NOT REPLACE + SGROUP,ACTIVE vs. SGROUP,* is not handled here! released: @@ -527,13 +537,18 @@ static enum _R_ACTION replace_sgroup_owned_vs_X_replica(struct winsdb_record *r1 return R_DO_REPLACE; } - if (R_IS_SGROUP(r2)) { - /* not handled here: MERGE */ - return R_DO_SGROUP_MERGE; + if (!R_IS_SGROUP(r2) || !R_IS_ACTIVE(r2)) { + /* NOT REPLACE */ + return R_NOT_REPLACE; } - /* NOT REPLACE */ - return R_NOT_REPLACE; + /* + * TODO: should we have the same logic here like in + * replace_sgroup_replica_vs_X_replica() ? + */ + + /* not handled here: MERGE */ + return R_DO_SGROUP_MERGE; } /* |