Emergency fix. boost::format doesn't have the thread safety we thought.

This commit is contained in:
JoelKatz
2013-04-08 17:16:18 -07:00
parent 66db6eac6a
commit 46dbd3e967
7 changed files with 12 additions and 11 deletions

View File

@@ -304,7 +304,7 @@ void ValidationCollection::condWrite()
void ValidationCollection::doWrite(Job&)
{
LoadEvent::autoptr event(theApp->getJobQueue().getLoadEventAP(jtDISK, "ValidationWrite"));
static boost::format insVal("INSERT INTO Validations "
boost::format insVal("INSERT INTO Validations "
"(LedgerHash,NodePubKey,SignTime,RawData) VALUES ('%s','%s','%u',%s);");
boost::mutex::scoped_lock sl(mValidationLock);