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

@@ -154,7 +154,8 @@ void HashedObjectStore::bulkWrite()
case hotTRANSACTION_NODE: type = 'N'; break;
default: type = 'U';
}
db->executeSQL(boost::str(fAdd % it->getHash().GetHex() % type % it->getIndex() % sqlEscape(it->getData())));
db->executeSQL(boost::str(boost::format(fAdd)
% it->getHash().GetHex() % type % it->getIndex() % sqlEscape(it->getData())));
}
db->executeSQL("END TRANSACTION;");