Skip to content

Commit

Permalink
global flush for Foxx on reload
Browse files Browse the repository at this point in the history
  • Loading branch information
fceller committed Jan 15, 2015
1 parent 4bd39c6 commit 94d44ee
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion js/server/modules/org/arangodb/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -1194,6 +1194,14 @@ function resultError (req, res, httpReturnCode, errorNum, errorMessage, headers,
////////////////////////////////////////////////////////////////////////////////

function reloadRouting () {
RoutingCache = {};
}

////////////////////////////////////////////////////////////////////////////////
/// @brief flushes cache and reload routing information for a database
////////////////////////////////////////////////////////////////////////////////

function reloadRoutingDB () {
'use strict';

var i;
Expand Down Expand Up @@ -1426,7 +1434,7 @@ function firstRouting (type, parts) {
var url = parts;

if (undefined === RoutingCache[arangodb.db._name()]) {
reloadRouting();
reloadRoutingDB();
}

var routingCache = RoutingCache[arangodb.db._name()];
Expand Down

0 comments on commit 94d44ee

Please sign in to comment.