1
0
Fork 0

Report collection better in Current.

This commit is contained in:
Max Neunhoeffer 2014-01-17 14:03:16 +01:00
parent e8f7dbbf5b
commit e5f8331093
1 changed files with 9 additions and 1 deletions

View File

@ -259,7 +259,7 @@ function createLocalCollections (plannedCollections) {
var ourselves = ArangoServerState.id();
var createCollectionAgency = function (database, payload) {
ArangoAgency.set("Current/Collections/" + database + "/" + payload.name + "/" + ourselves,
ArangoAgency.set("Current/Collections/" + database + "/" + payload.id + "/" + ourselves,
payload);
};
@ -304,6 +304,10 @@ function createLocalCollections (plannedCollections) {
else {
db._create(shard, payload);
}
payload.error = false;
payload.errorNum = 0;
payload.errorMessage = "no error";
writeLocked({ part: "Current" },
createCollectionAgency,
@ -326,6 +330,10 @@ function createLocalCollections (plannedCollections) {
database,
shard);
db._collection(shard).properties(properties);
payload.error = false;
payload.errorNum = 0;
payload.errorMessage = "no error";
writeLocked({ part: "Current" },
createCollectionAgency,