]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
bitbake: 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 14:51:11 +0000 (15:51 +0100)
commit3e5abff7da73fe35842c06cd85e2a4f50c4efa05
treefb99cc662bf7c1c0b84544038775ae8fe121d9d5
parentb306d7d9a4dd5dec0ed1ca91b50569f078ac103e
bitbake: 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.

(Bitbake rev: 9f9e6d87007ea87e62495705464f4232c996a165)

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