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

@@ -260,7 +260,7 @@ std::string SerializedTransaction::getSQL(Serializer rawTxn, uint32 inLedger, ch
static boost::format bfTrans("('%s', '%s', '%s', '%d', '%d', '%c', %s)");
std::string rTxn = sqlEscape(rawTxn.peekData());
return str(bfTrans
return str(boost::format(bfTrans)
% getTransactionID().GetHex() % getTransactionType() % getSourceAccount().humanAccountID()
% getSequence() % inLedger % status % rTxn);
}
@@ -271,7 +271,7 @@ std::string SerializedTransaction::getMetaSQL(Serializer rawTxn, uint32 inLedger
static boost::format bfTrans("('%s', '%s', '%s', '%d', '%d', '%c', %s, %s)");
std::string rTxn = sqlEscape(rawTxn.peekData());
return str(bfTrans
return str(boost::format(bfTrans)
% getTransactionID().GetHex() % getTransactionType() % getSourceAccount().humanAccountID()
% getSequence() % inLedger % status % rTxn % escapedMetaData);
}