s4/dsdb/replmd: add a helper for common calculations
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 24 Jul 2019 03:16:36 +0000 (15:16 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 24 Jul 2019 09:35:24 +0000 (09:35 +0000)
commit5d75ab3ebf48f876f4fb462e0d18c71f931a27c2
tree37aa291902cf34f1a4b17ff83baf5603ed73057a
parente7a6c70953daa84b88004e791e67b9a45f086946
s4/dsdb/replmd: add a helper for common calculations

We currently do exactly this work, in exactly these words (ignoring
formatting) in two different places. The next two commits will make
those places use this helper function. We do this over three commits
so that we can more easily compare the next two and be sure they are
doing the same thing.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/samdb/ldb_modules/repl_meta_data.c