mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
s4:repl_meta_data: increment the attribute version with each change
metze
This commit is contained in:
parent
0be268bf55
commit
db26c00c55
@ -505,6 +505,7 @@ static int replmd_update_rpmd_element(struct ldb_context *ldb,
|
||||
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
|
||||
@ -519,7 +520,7 @@ static int replmd_update_rpmd_element(struct ldb_context *ldb,
|
||||
}
|
||||
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user