diff --git a/BedrockServer.cpp b/BedrockServer.cpp index 55bb30ae6..98e59414f 100644 --- a/BedrockServer.cpp +++ b/BedrockServer.cpp @@ -213,8 +213,9 @@ void BedrockServer::sync() // we're leading, then the next update() loop will set us to standing down, and then we won't accept any new // commands, and we'll shortly run through the existing queue. if (_shutdownState.load() == COMMANDS_FINISHED) { - SINFO("All clients responded to, " << BedrockCommand::getCommandCount() << " commands remaining. Shutting down sync node."); + SINFO("All clients responded to, " << BedrockCommand::getCommandCount() << " commands remaining."); if (_syncNode->beginShutdown()) { + SINFO("Beginning shuttdown of sync node."); // This will cause us to skip the next `poll` iteration which avoids a 1 second wait. _notifyDoneSync.push(true); } diff --git a/libstuff/sqlite3.c b/libstuff/sqlite3.c index b3c5eebf7..a7111ef6c 100644 --- a/libstuff/sqlite3.c +++ b/libstuff/sqlite3.c @@ -18,7 +18,7 @@ ** separate file. This file contains only code for the core SQLite library. ** ** The content in this amalgamation comes from Fossil check-in -** 65b753735b8e8fb70d2b522d527426f1eb5c. +** df4183ace93b788b798b258274bf6b651906. */ #define SQLITE_CORE 1 #define SQLITE_AMALGAMATION 1 @@ -465,7 +465,7 @@ extern "C" { */ #define SQLITE_VERSION "3.47.0" #define SQLITE_VERSION_NUMBER 3047000 -#define SQLITE_SOURCE_ID "2024-12-06 17:52:38 65b753735b8e8fb70d2b522d527426f1eb5c09339fb4b15cf69cbd2e595b160f" +#define SQLITE_SOURCE_ID "2024-12-10 14:56:20 df4183ace93b788b798b258274bf6b651906c9f1cf2af4983e447cdf52904523" /* ** CAPI3REF: Run-Time Library Version Numbers @@ -71575,7 +71575,7 @@ SQLITE_PRIVATE int sqlite3WalCheckpoint( ** writer lock retried until either the busy-handler returns 0 or the ** lock is successfully obtained. */ - if( eMode!=SQLITE_CHECKPOINT_PASSIVE ){ + if( eMode!=SQLITE_CHECKPOINT_PASSIVE && isWalMode2(pWal)==0 ){ rc = walBusyLock(pWal, xBusy2, pBusyArg, WAL_WRITE_LOCK, 1); if( rc==SQLITE_OK ){ pWal->writeLock = 1; @@ -93474,7 +93474,7 @@ SQLITE_PRIVATE void sqlite3CommitTimeLog(u64 *aCommit){ } zStr = sqlite3_mprintf("%z%s%s%d%s", zStr, (zStr?", ":""),zHash,iVal,zU); } - sqlite3_log(SQLITE_WARNING, "slow commit (v=16): (%s)", zStr); + sqlite3_log(SQLITE_WARNING, "slow commit (v=17): (%s)", zStr); sqlite3_free(zStr); } } @@ -93502,7 +93502,7 @@ SQLITE_PRIVATE void sqlite3PrepareTimeLog(const char *zSql, int nSql, u64 *aPrep } if( nByte<0 ){ nByte = sqlite3Strlen30(zSql); } sqlite3_log(SQLITE_WARNING, - "slow prepare (v=16): (%s) [%.*s]", zStr, nByte, zSql + "slow prepare (v=17): (%s) [%.*s]", zStr, nByte, zSql ); sqlite3_free(zStr); } @@ -93514,11 +93514,13 @@ SQLITE_PRIVATE void sqlite3SchemaTimeLog(u64 *aSchema, const char *zFile){ char *zStr = 0; int ii; for(ii=1; iiresult == RESULT::CANCELED) { // It's possible that we hit the timeout here after `cancel()` has set the global value, but before we received the notification. // This isn't a problem, and we can jump back to the top of the loop and check again. If there's some problem, we'll see it there. - SINFO("Hit 1s timeout while global cancel " << (_globalResult == RESULT::CANCELED) << " or " << " specific cancel " << (state->result == RESULT::CANCELED)); + SINFO("Hit 1s timeout while global cancel " << (_globalResult == RESULT::CANCELED) << " or specific cancel " << (state->result == RESULT::CANCELED)); continue; } } @@ -114,11 +114,12 @@ void SQLiteSequentialNotifier::cancel(uint64_t cancelAfter) { auto& valueThreadMap = *valueThreadMapPtr; // If cancelAfter is specified, start from that value. Otherwise, we start from the beginning. auto start = _cancelAfter ? valueThreadMap.upper_bound(_cancelAfter) : valueThreadMap.begin(); - SINFO("[performance] Next value to cancel after " << cancelAfter << " is " << start->first); if (start == valueThreadMap.end()) { // There's nothing to remove. + SINFO("[performance] No available values to cancel after " << cancelAfter); return; } + SINFO("[performance] Next value to cancel after " << cancelAfter << " is " << start->first); // Now iterate across whatever's remaining and mark it canceled. auto current = start;