s3:registry: fix seqnum race in fetch_values_internal
commit7ea8bd3605adb3a53ca44ebdabfdcdb9c1aeaa18
authorMichael Adam <obnox@samba.org>
Wed, 11 Apr 2012 13:48:02 +0000 (11 15:48 +0200)
committerAndreas Schneider <asn@samba.org>
Wed, 25 Apr 2012 12:31:11 +0000 (25 14:31 +0200)
treef2391dbe4b5a8f19a42d9c8635a59f3cb25a4f95
parentab83005b30c621230db674faa1d123f44c9122e7
s3:registry: fix seqnum race in fetch_values_internal

This prevents race between fetching seqnum and key content.

Because there is currently no way to atomically fetch the
record along with the seqnum, I use a loop.
This is far from optimal and should should ideally be done
differently. But for now it fixes the race.

Signed-off-by: Andreas Schneider <asn@samba.org>
source3/registry/reg_backend_db.c