mirror of https://gitee.com/bigwinds/arangodb
Report collection better in Current.
This commit is contained in:
parent
e8f7dbbf5b
commit
e5f8331093
|
@ -259,7 +259,7 @@ function createLocalCollections (plannedCollections) {
|
||||||
var ourselves = ArangoServerState.id();
|
var ourselves = ArangoServerState.id();
|
||||||
|
|
||||||
var createCollectionAgency = function (database, payload) {
|
var createCollectionAgency = function (database, payload) {
|
||||||
ArangoAgency.set("Current/Collections/" + database + "/" + payload.name + "/" + ourselves,
|
ArangoAgency.set("Current/Collections/" + database + "/" + payload.id + "/" + ourselves,
|
||||||
payload);
|
payload);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -305,6 +305,10 @@ function createLocalCollections (plannedCollections) {
|
||||||
db._create(shard, payload);
|
db._create(shard, payload);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
payload.error = false;
|
||||||
|
payload.errorNum = 0;
|
||||||
|
payload.errorMessage = "no error";
|
||||||
|
|
||||||
writeLocked({ part: "Current" },
|
writeLocked({ part: "Current" },
|
||||||
createCollectionAgency,
|
createCollectionAgency,
|
||||||
[ database, payload ]);
|
[ database, payload ]);
|
||||||
|
@ -327,6 +331,10 @@ function createLocalCollections (plannedCollections) {
|
||||||
shard);
|
shard);
|
||||||
db._collection(shard).properties(properties);
|
db._collection(shard).properties(properties);
|
||||||
|
|
||||||
|
payload.error = false;
|
||||||
|
payload.errorNum = 0;
|
||||||
|
payload.errorMessage = "no error";
|
||||||
|
|
||||||
writeLocked({ part: "Current" },
|
writeLocked({ part: "Current" },
|
||||||
createCollectionAgency,
|
createCollectionAgency,
|
||||||
[ database, payload ]);
|
[ database, payload ]);
|
||||||
|
|
Loading…
Reference in New Issue