mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-17 22:44:42 +00:00
removed possible introduced HA Redis bug; improved comment
This commit is contained in:
@@ -16,6 +16,8 @@ bootstrapVolume();
|
|||||||
* Wraps better-sqlite3 Statement to call `finalize()` immediately after
|
* Wraps better-sqlite3 Statement to call `finalize()` immediately after
|
||||||
* execution, freeing native sqlite3_stmt memory deterministically instead
|
* execution, freeing native sqlite3_stmt memory deterministically instead
|
||||||
* of waiting for GC. Fixes steady off-heap growth under load (#2120).
|
* of waiting for GC. Fixes steady off-heap growth under load (#2120).
|
||||||
|
* WARNING: Finalizes after first execution — incompatible with drizzle's
|
||||||
|
* reusable .prepare() builders. No such usage exists in this codebase.
|
||||||
*/
|
*/
|
||||||
function autoFinalizeStatement(
|
function autoFinalizeStatement(
|
||||||
stmt: BetterSqlite3.Statement
|
stmt: BetterSqlite3.Statement
|
||||||
|
|||||||
@@ -414,8 +414,6 @@ const removeClient = async (
|
|||||||
await redisManager.del(
|
await redisManager.del(
|
||||||
getNodeConnectionsKey(NODE_ID, clientId)
|
getNodeConnectionsKey(NODE_ID, clientId)
|
||||||
);
|
);
|
||||||
// Remove Redis config version key to prevent indefinite accumulation.
|
|
||||||
await redisManager.del(getConfigVersionKey(clientId));
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error(
|
logger.error(
|
||||||
"Failed to remove client from Redis tracking (cleanup will occur on recovery):",
|
"Failed to remove client from Redis tracking (cleanup will occur on recovery):",
|
||||||
|
|||||||
Reference in New Issue
Block a user