mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Sorry. Syntax errors.
This commit is contained in:
@@ -71,8 +71,7 @@ bool SqliteDatabase::executeSQL(const char* sql, bool fail_ok)
|
|||||||
{
|
{
|
||||||
if ((rc != SQLITE_BUSY) && (rc != SQLITE_LOCKED))
|
if ((rc != SQLITE_BUSY) && (rc != SQLITE_LOCKED))
|
||||||
{
|
{
|
||||||
cLog(lsFATAL) << << mHost << " returns error " << rc
|
cLog(lsFATAL) << mHost << " returns error " << rc << ": " << sqlite3_errmsg(mConnection);
|
||||||
<< ": " << sqlite3_errmsg(mConnection);
|
|
||||||
assert(false);
|
assert(false);
|
||||||
}
|
}
|
||||||
mMoreRows = false;
|
mMoreRows = false;
|
||||||
@@ -249,8 +248,8 @@ void SqliteDatabase::runWal()
|
|||||||
int ret = sqlite3_wal_checkpoint_v2(mConnection, db.c_str(), SQLITE_CHECKPOINT_PASSIVE, &log, &ckpt);
|
int ret = sqlite3_wal_checkpoint_v2(mConnection, db.c_str(), SQLITE_CHECKPOINT_PASSIVE, &log, &ckpt);
|
||||||
if (ret != SQLITE_OK)
|
if (ret != SQLITE_OK)
|
||||||
{
|
{
|
||||||
cLog((ret == SQLITE_LOCKED) ? lsDEBUG : lsWARNING) << "WAL " << mHost << ": " <<
|
cLog((ret == SQLITE_LOCKED) ? lsDEBUG : lsWARNING) << "WAL " << mHost << ":"
|
||||||
<< sqlite3_db_filename(mConnection, "main") << " / " << db << " errror " << ret;
|
<< db << " errror " << ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
walSet.clear();
|
walSet.clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user