Bitcoind stuck: Lock table is out of available lock entries My bitcoind daemon stopped updating the blockchain at block 258354.

db.log says:

Lock table is out of available lock entries
Lock table is out of available lock entries
etc...


Here is an excerpt from debug.log:

ERROR: ConnectInputs() : 5915fee0a9 mapTransactions prev not found 66283c57ab
ERROR: AcceptToMemoryPool() : ConnectInputs failed 5915fee0a9
storing orphan tx 5915fee0a9
received: inv (37 bytes)
got inventory: tx 09920def2c50d6b07081  new
askfor tx 09920def2c50d6b07081   0
sending getdata: tx 09920def2c50d6b07081
sending: getdata (37 bytes) 
received: inv (37 bytes)
got inventory: tx 09920def2c50d6b07081  new
askfor tx 09920def2c50d6b07081   1379380242000000
received: inv (253 bytes)


Any ideas what I should do?

I just spent a week downloading the blockchain. Please not again.
Have you updated to the latest client in the 0.8.x series? At a wild guess, it sounds like you're on 0.7.x.