tdb: Factor out the retry loop from tdb_allrecord_upgrade
authorVolker Lendecke <vl@samba.org>
Sat, 16 Feb 2013 15:49:56 +0000 (16:49 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 19 Feb 2013 14:46:45 +0000 (15:46 +0100)
commit3534e4e8d5bebfaaaef5886dcea219a7e4047fc7
treef46e77c6cdc3b2ff74adee52dd753ff8c94ddf46
parent1f93f0836484ccc1abe335f5bd2cfd35df0b7631
tdb: Factor out the retry loop from tdb_allrecord_upgrade

For the mutex code we will have to lock the hashchain and the record
lock area independently. So we will have to call the loop twice. And,
it's a small refactoring for the better anyway I think.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/tdb/common/lock.c