mirror of https://gitee.com/bigwinds/arangodb
Fix bug in creation of sharded collections in cluster.
This commit is contained in:
parent
bbffe71cfd
commit
351da7709d
|
@ -437,12 +437,13 @@ function createLocalCollections (plannedCollections) {
|
||||||
if (! localCollections.hasOwnProperty(shard)) {
|
if (! localCollections.hasOwnProperty(shard)) {
|
||||||
// must create this shard
|
// must create this shard
|
||||||
payload.planId = payload.id;
|
payload.planId = payload.id;
|
||||||
|
delete payload.id; // must not actually set it here
|
||||||
|
|
||||||
console.info("creating local shard '%s/%s' for central '%s/%s'",
|
console.info("creating local shard '%s/%s' for central '%s/%s'",
|
||||||
database,
|
database,
|
||||||
shard,
|
shard,
|
||||||
database,
|
database,
|
||||||
payload.id);
|
payload.planId);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (payload.type === ArangoCollection.TYPE_EDGE) {
|
if (payload.type === ArangoCollection.TYPE_EDGE) {
|
||||||
|
@ -464,7 +465,7 @@ function createLocalCollections (plannedCollections) {
|
||||||
database,
|
database,
|
||||||
shard,
|
shard,
|
||||||
database,
|
database,
|
||||||
payload.id,
|
payload.planId,
|
||||||
JSON.stringify(err2));
|
JSON.stringify(err2));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue