Skip to content

Commit

Permalink
a2.0.0-rcX-debugrelay-5: log condition for running transactionBatch()
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrippled committed Jan 26, 2024
1 parent 7f8a3f6 commit f06e259
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/ripple/app/misc/NetworkOPs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1354,12 +1354,20 @@ bool
NetworkOPsImp::transactionBatch(bool const drain)
{
{
JLOG(m_journal.debug()) << "transactionBatch locking";
std::unique_lock<std::mutex> lock(mMutex);
JLOG(m_journal.debug()) << "transactionBatch locked. state == running?, empty? "
<< (mDispatchState == DispatchState::running) << ", "
<< mTransactions.empty();
if (mDispatchState == DispatchState::running || mTransactions.empty())
return false;

do
{
JLOG(m_journal.debug()) << "transactionBatch apply()";
apply(lock);
JLOG(m_journal.debug()) << "transactionBatch apply() finished";
}
while (drain && mTransactions.size());
}
setBatchApplyTimer();
Expand Down
2 changes: 1 addition & 1 deletion src/ripple/protocol/impl/BuildInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace BuildInfo {
// and follow the format described at http://semver.org/
//------------------------------------------------------------------------------
// clang-format off
char const* const versionString = "2.0.0-rcX-debugrelay-4"
char const* const versionString = "2.0.0-rcX-debugrelay-5"
// clang-format on

#if defined(DEBUG) || defined(SANITIZER)
Expand Down

0 comments on commit f06e259

Please sign in to comment.