mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Emergency fix. boost::format doesn't have the thread safety we thought.
This commit is contained in:
@@ -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;");
|
||||
|
||||
Reference in New Issue
Block a user