1
0
Fork 0

Fix reporting of dropped shard in Current.

This commit is contained in:
Max Neunhoeffer 2014-01-21 10:44:02 +01:00
parent eec3c08f87
commit 06953daf80
1 changed files with 3 additions and 3 deletions

View File

@ -397,9 +397,9 @@ function createLocalCollections (plannedCollections) {
function dropLocalCollections (plannedCollections) { function dropLocalCollections (plannedCollections) {
var ourselves = ArangoServerState.id(); var ourselves = ArangoServerState.id();
var dropCollectionAgency = function (database, id) { var dropCollectionAgency = function (database, shardID, id) {
try { try {
ArangoAgency.remove("Current/Collections/" + database + "/" + id + "/" + ourselves); ArangoAgency.remove("Current/Collections/" + database + "/" + id + "/" + shardID);
} }
catch (err) { catch (err) {
// ignore errors // ignore errors
@ -446,7 +446,7 @@ function dropLocalCollections (plannedCollections) {
writeLocked({ part: "Current" }, writeLocked({ part: "Current" },
dropCollectionAgency, dropCollectionAgency,
[ database, collections[collection].planId ]); [ database, collection, collections[collection].planId ]);
} }
} }
} }