git.samba.org
/
ira
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
s4:repl_meta_data: increment the attribute version with each change
[ira/wip.git]
/
source4
/
dsdb
/
samdb
/
ldb_modules
/
repl_meta_data.c
diff --git
a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
index 2a16c2bb82355aa5e149dc6a7cc7263e07f04238..1242d1d0a361412e651fa9e452931b251f9d95d6 100644
(file)
--- a/
source4/dsdb/samdb/ldb_modules/repl_meta_data.c
+++ b/
source4/dsdb/samdb/ldb_modules/repl_meta_data.c
@@
-505,6
+505,7
@@
static int replmd_update_rpmd_element(struct ldb_context *ldb,
return LDB_ERR_OPERATIONS_ERROR;
}
omd->ctr.ctr1.count++;
return LDB_ERR_OPERATIONS_ERROR;
}
omd->ctr.ctr1.count++;
+ ZERO_STRUCT(omd->ctr.ctr1.array[i]);
}
/* Get a new sequence number from the backend. We only do this
}
/* Get a new sequence number from the backend. We only do this
@@
-519,7
+520,7
@@
static int replmd_update_rpmd_element(struct ldb_context *ldb,
}
md1 = &omd->ctr.ctr1.array[i];
}
md1 = &omd->ctr.ctr1.array[i];
- md1->version
= 1
;
+ md1->version
++
;
md1->attid = a->attributeID_id;
md1->originating_change_time = now;
md1->originating_invocation_id = *our_invocation_id;
md1->attid = a->attributeID_id;
md1->originating_change_time = now;
md1->originating_invocation_id = *our_invocation_id;