]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
serv/db: Fix looping upon database locked issues
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 31 Aug 2013 22:41:35 +0000 (23:41 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 1 Sep 2013 07:53:43 +0000 (08:53 +0100)
commit9f9e6d87007ea87e62495705464f4232c996a165
tree13f9202edac11deccd8c7593071eb5a291fd5eea
parent9bee497960889d9baa0a4284d79a384b18a8e826
serv/db: Fix looping upon database locked issues

If the database is locked we will get an immediate error indicating so,
there is no retry timeout. The looping code is therefore useless, the loop
count is near instantly exceeded.

Using a time based retry means we can wait a sensible time, then gracefully
exit.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/prserv/db.py