Skip to content

Commit

Permalink
Hopefully fixed issue #1412
Browse files Browse the repository at this point in the history
  • Loading branch information
kzangeli committed Aug 23, 2023
1 parent 30ef71c commit c67a9a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions CHANGES_NEXT_RELEASE
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Fixed issues:
#280 Protection for POST /temporal/entities against usage when troe is not enabled
#280 Support for different core contexts via CLI parameter -coreContext <v1.0|v1.3|v1.4|v1.5|v1.6|v1.7> (v1.6 is default)
#280 Re-implemented the propagation of subscription between brokers in HA (sub-cache synchronization)
#280 Protection for POST /temporal/entities against usage when troe is not enabled
#280 Support for different core contexts via CLI parameter -coreContext <v1.0|v1.3|v1.4|v1.5|v1.6|v1.7> (v1.6 is default)
#280 Re-implemented the propagation of subscription between brokers in HA (sub-cache synchronization)
#1412 Bug in the size of the postgres connection pool (a hardcoded size of 10 connection, instead of using the variable tied to the CLI option -troePoolSize, meant for this)
6 changes: 3 additions & 3 deletions src/lib/orionld/troe/pgInit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
#include "logMsg/traceLevels.h" // Lmt*

#include "orionld/common/pqHeader.h" // Postgres header
#include "orionld/common/orionldState.h" // troePort
#include "orionld/common/orionldState.h" // troePort, troePoolSize
#include "orionld/troe/pgConnectionPoolInit.h" // pgConnectionPoolInit
#include "orionld/troe/pgDatabasePrepare.h" // pgDatabasePrepare
#include "orionld/troe/pgConnectionPoolsPresent.h" // pgConnectionPoolsPresent
#include "orionld/troe/pgConnectionPoolsPresent.h" // pgConnectionPoolsPresent
#include "orionld/troe/pgInit.h" // Own interface


Expand All @@ -45,7 +45,7 @@ bool pgInit(const char* dbPrefix)
{
snprintf(pgPortString, sizeof(pgPortString), "%d", troePort);

if (pgConnectionPoolInit(10) == false)
if (pgConnectionPoolInit(troePoolSize) == false)
LM_RE(false, ("error initializing the postgres connection pools"));

bool b = pgDatabasePrepare(dbPrefix);
Expand Down

0 comments on commit c67a9a8

Please sign in to comment.