Skip to content

Commit

Permalink
Merge pull request #1465 from FIWARE/issue/1451-2
Browse files Browse the repository at this point in the history
mongodb connection problem
  • Loading branch information
kzangeli authored Nov 13, 2023
2 parents 5acf67a + 1cead77 commit 2565788
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lib/orionld/mongoc/mongocInit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,10 @@ static char* uriCompose
// If dbHost is a list, the list must end with a slash
// Assuming it's a list if there's a comma in the string
//
if (strchr(dbHost, ',') != NULL)
compV[compNo++] = (char*) "/";
// Correction: seems like the slash is needed ALWAYS
//
// if (strchr(dbHost, ',') != NULL)
compV[compNo++] = (char*) "/";

bool dbAuthDbPresent = (dbAuthDb != NULL) && (dbAuthDb[0] != 0);
bool dbReplicaSetPresent = (dbReplicaSet != NULL) && (dbReplicaSet[0] != 0);
Expand Down

0 comments on commit 2565788

Please sign in to comment.