replmd: Remove static values passed to replmd_build_la_val()
authorTim Beale <timbeale@catalyst.net.nz>
Thu, 28 Sep 2017 02:01:21 +0000 (15:01 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 20 Oct 2017 02:05:21 +0000 (04:05 +0200)
commitcef17ce4f04bacb50193cb7e7a2cfd53fdf61110
tree8e820db1904dc2a6a39e728a5a480c2b58caf2c2
parent499fa6b4a68f93f20df00dc776637fc93ae4c37b
replmd: Remove static values passed to replmd_build_la_val()

replmd_build_la_val() is used to populate a new link attribute value
from scratch. The version parameter is always passed in as the initial
value (zero), and deleted is always passed in as false.

For cases (like replication) where we want to set version/deleted to
something other than the defaults, we can use replmd_set_la_val()
instead.

This patch changes these 2 parameters to variables instead.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13059

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/samdb/ldb_modules/repl_meta_data.c