mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
CI: fix asan lock issues
This commit is contained in:
parent
c6aba4ac06
commit
b4185c7008
7 changed files with 34 additions and 16 deletions
|
|
@ -2717,13 +2717,14 @@ static void UpdateTipLog(
|
|||
!warning_messages.empty() ? strprintf(" warning='%s'", warning_messages) : "");
|
||||
}
|
||||
|
||||
void ForceUntrimHeader(const CBlockIndex *pindex_)
|
||||
void ForceUntrimHeader(const CBlockIndex *pindex_) EXCLUSIVE_LOCKS_REQUIRED(::cs_main)
|
||||
{
|
||||
AssertLockHeld(cs_main);
|
||||
|
||||
assert(pindex_);
|
||||
if (!pindex_->trimmed()) {
|
||||
return;
|
||||
}
|
||||
AssertLockHeld(cs_main);
|
||||
CBlockIndex *pindex=const_cast<CBlockIndex*>(pindex_);
|
||||
pindex->untrim();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue