Skip to content

Commit

Permalink
More fixes to the closing of virtuoso connections.
Browse files Browse the repository at this point in the history
  • Loading branch information
silvae86 committed Apr 6, 2018
1 parent f80f814 commit 6e8c57c
Show file tree
Hide file tree
Showing 5 changed files with 187 additions and 191 deletions.
2 changes: 1 addition & 1 deletion conf/deployment_configs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,7 @@
"mySQLDBName": "TRAVISTESTSdendroVagrantDemo",
"maxUploadSize": 2147483648,
"maxProjectSize": 5368709120,
"maxSimultaneousConnectionsToDb": 10,
"maxSimultaneousConnectionsToDb": 2,
"dbOperationTimeout": 16000,
"tempFilesDir": "temp",
"tempUploadsDir": "temp_uploads",
Expand Down
5 changes: 3 additions & 2 deletions src/bootup/init/init_mysql.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ const initMySQL = function (app, callback)
}
else
{
if(Config.getMySQLByID().connection)
if (Config.getMySQLByID().connection)
{
Config.getMySQLByID().connection.releaseAllConnections(function(){
Config.getMySQLByID().connection.releaseAllConnections(function ()
{
Config.getMySQLByID().connection = client;
Logger.log("ReConnected to MySQL Database server running on " + Config.mySQLHost + ":" + Config.mySQLPort);
return callback(null);
Expand Down
3 changes: 1 addition & 2 deletions src/kb/cache/caches/mongodb.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,8 @@ MongoDBCache.prototype.getByQuery = function (query, callback)
}
Logger.log("error", "Error running query: " + JSON.stringify(query, null, 4));
Logger.log("error", err.stack);
return callback(err, "Unable to execute query " + JSON.stringify(query) + " from mongodb cache.");

cursor.close();
return callback(err, "Unable to execute query " + JSON.stringify(query) + " from mongodb cache.");
});
}
else
Expand Down
Loading

0 comments on commit 6e8c57c

Please sign in to comment.