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