mirror of https://gitee.com/bigwinds/arangodb
fix restoring of smart graph edge collections so it does not time out (#5048)
This commit is contained in:
parent
ae0b99de63
commit
b96250b57a
|
@ -1,6 +1,8 @@
|
||||||
v3.3.6 (XXXX-XX-XX)
|
v3.3.6 (XXXX-XX-XX)
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
|
* fix restoring of smart graph edge collections (may have run into timeout before)
|
||||||
|
|
||||||
* added ArangoShell helper function for packaging all information about an
|
* added ArangoShell helper function for packaging all information about an
|
||||||
AQL query so it can be run and analyzed elsewhere:
|
AQL query so it can be run and analyzed elsewhere:
|
||||||
|
|
||||||
|
|
|
@ -1351,7 +1351,13 @@ int ClusterInfo::createCollectionCoordinator(std::string const& databaseName,
|
||||||
loadPlan();
|
loadPlan();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (numberOfShards == 0) {
|
bool isSmart = false;
|
||||||
|
VPackSlice smartSlice = json.get("isSmart");
|
||||||
|
if (smartSlice.isBool() && smartSlice.getBool()) {
|
||||||
|
isSmart = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (numberOfShards == 0 || isSmart) {
|
||||||
loadCurrent();
|
loadCurrent();
|
||||||
events::CreateCollection(name, TRI_ERROR_NO_ERROR);
|
events::CreateCollection(name, TRI_ERROR_NO_ERROR);
|
||||||
return TRI_ERROR_NO_ERROR;
|
return TRI_ERROR_NO_ERROR;
|
||||||
|
|
Loading…
Reference in New Issue