Bugfixes.

This commit is contained in:
JoelKatz
2012-05-31 21:22:38 -07:00
parent 11e7aafd08
commit 46bfa149d1
2 changed files with 11 additions and 5 deletions

View File

@@ -1,9 +1,11 @@
#include "Ledger.h"
#include "utils.h"
#include <boost/make_shared.hpp>
#include "utils.h"
#include "Log.h"
LedgerStateParms Ledger::writeBack(LedgerStateParms parms, SerializedLedgerEntry::pointer entry)
{
ScopedLock l(mAccountStateMap->Lock());
@@ -13,9 +15,7 @@ LedgerStateParms Ledger::writeBack(LedgerStateParms parms, SerializedLedgerEntry
{
if ((parms & lepCREATE) == 0)
{
#ifdef DEBUG
std::cerr << "writeBack no create" << std::endl;
#endif
Log(lsERROR) << "WriteBack non-existent node without create";
return lepMISSING;
}
create = true;