mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Create new Validations columns properly:
* Thread-safe preparation of Validations cleanup query * Followup to RIPD-870
This commit is contained in:
@@ -664,10 +664,10 @@ SHAMapStoreImp::clearPrior (LedgerIndex lastRotated)
|
||||
<< deleteBatch << " rows.";
|
||||
long long totalRowsAffected = 0;
|
||||
long long rowsAffected;
|
||||
soci::statement st = [&]
|
||||
auto st = [&]
|
||||
{
|
||||
auto db = ledgerDb_->checkoutDb();
|
||||
return (db->prepare << deleteQuery);
|
||||
return soci::statement(db->prepare << deleteQuery);
|
||||
}();
|
||||
if (health())
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user