mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' of https://github.com/arangodb/arangodb into devel
This commit is contained in:
commit
0657997168
|
@ -614,18 +614,15 @@ AqlItemBlock* ShortestPathBlock::getSome(size_t, size_t atMost) {
|
||||||
// only copy 1st row of registers inherited from previous frame(s)
|
// only copy 1st row of registers inherited from previous frame(s)
|
||||||
inheritRegisters(cur, res.get(), _pos);
|
inheritRegisters(cur, res.get(), _pos);
|
||||||
|
|
||||||
// TODO this might be optimized in favor of direct mptr.
|
|
||||||
// TODO: lease builder?
|
// TODO: lease builder?
|
||||||
VPackBuilder resultBuilder;
|
VPackBuilder resultBuilder;
|
||||||
for (size_t j = 0; j < toSend; j++) {
|
for (size_t j = 0; j < toSend; j++) {
|
||||||
if (usesVertexOutput()) {
|
if (usesVertexOutput()) {
|
||||||
// TODO this might be optimized in favor of direct mptr.
|
|
||||||
resultBuilder.clear();
|
resultBuilder.clear();
|
||||||
_path->vertexToVelocyPack(_trx, _mmdr.get(), _posInPath, resultBuilder);
|
_path->vertexToVelocyPack(_trx, _mmdr.get(), _posInPath, resultBuilder);
|
||||||
res->setValue(j, _vertexReg, AqlValue(resultBuilder.slice()));
|
res->setValue(j, _vertexReg, AqlValue(resultBuilder.slice()));
|
||||||
}
|
}
|
||||||
if (usesEdgeOutput()) {
|
if (usesEdgeOutput()) {
|
||||||
// TODO this might be optimized in favor of direct mptr.
|
|
||||||
resultBuilder.clear();
|
resultBuilder.clear();
|
||||||
_path->edgeToVelocyPack(_trx, _mmdr.get(), _posInPath, resultBuilder);
|
_path->edgeToVelocyPack(_trx, _mmdr.get(), _posInPath, resultBuilder);
|
||||||
res->setValue(j, _edgeReg, AqlValue(resultBuilder.slice()));
|
res->setValue(j, _edgeReg, AqlValue(resultBuilder.slice()));
|
||||||
|
|
|
@ -5,7 +5,7 @@ if(EXISTS ${SNAP_EXE})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(SNAPCRAFT_FOUND)
|
if(SNAPCRAFT_FOUND)
|
||||||
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${ARANGODB_PACKAGE_REVISION}.${ARANGODB_PACKAGE_ARCHITECTURE}")
|
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${ARANGODB_PACKAGE_REVISION}_${ARANGODB_PACKAGE_ARCHITECTURE}")
|
||||||
set(SNAPCRAFT_TEMPLATE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/Installation/Ubuntu")
|
set(SNAPCRAFT_TEMPLATE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/Installation/Ubuntu")
|
||||||
set(CPACK_PACKAGE_TGZ "${CMAKE_BINARY_DIR}/${CPACK_PACKAGE_FILE_NAME}.tar.gz")
|
set(CPACK_PACKAGE_TGZ "${CMAKE_BINARY_DIR}/${CPACK_PACKAGE_FILE_NAME}.tar.gz")
|
||||||
set(SNAPCRAFT_SOURCE_DIR "${CMAKE_BINARY_DIR}/_CPack_Packages/SNAP")
|
set(SNAPCRAFT_SOURCE_DIR "${CMAKE_BINARY_DIR}/_CPack_Packages/SNAP")
|
||||||
|
|
|
@ -56,8 +56,8 @@ function ahuacatlQueryEdgesTestSuite () {
|
||||||
db._drop(vn);
|
db._drop(vn);
|
||||||
db._drop("UnitTestsAhuacatlEdge");
|
db._drop("UnitTestsAhuacatlEdge");
|
||||||
|
|
||||||
vertex = db._create(vn);
|
vertex = db._create(vn, {numberOfShards: 4});
|
||||||
edge = db._createEdgeCollection("UnitTestsAhuacatlEdge");
|
edge = db._createEdgeCollection("UnitTestsAhuacatlEdge", {numberOfShards: 4});
|
||||||
|
|
||||||
vertex.save({ _key: "v1", name: "v1" });
|
vertex.save({ _key: "v1", name: "v1" });
|
||||||
vertex.save({ _key: "v2", name: "v2" });
|
vertex.save({ _key: "v2", name: "v2" });
|
||||||
|
@ -414,8 +414,8 @@ function ahuacatlQueryNeighborsTestSuite () {
|
||||||
db._drop(vn);
|
db._drop(vn);
|
||||||
db._drop("UnitTestsAhuacatlEdge");
|
db._drop("UnitTestsAhuacatlEdge");
|
||||||
|
|
||||||
vertex = db._create(vn);
|
vertex = db._create(vn, {numberOfShards: 4});
|
||||||
edge = db._createEdgeCollection("UnitTestsAhuacatlEdge");
|
edge = db._createEdgeCollection("UnitTestsAhuacatlEdge", {numberOfShards: 4});
|
||||||
|
|
||||||
vertex.save({ _key: "v1", name: "v1" });
|
vertex.save({ _key: "v1", name: "v1" });
|
||||||
vertex.save({ _key: "v2", name: "v2" });
|
vertex.save({ _key: "v2", name: "v2" });
|
||||||
|
@ -676,8 +676,8 @@ function ahuacatlQueryBreadthFirstTestSuite () {
|
||||||
setUpAll : function () {
|
setUpAll : function () {
|
||||||
cleanUp();
|
cleanUp();
|
||||||
|
|
||||||
vertex = db._create(vn);
|
vertex = db._create(vn, {numberOfShards: 4});
|
||||||
edge = db._createEdgeCollection(en);
|
edge = db._createEdgeCollection(en, {numberOfShards: 4});
|
||||||
|
|
||||||
vertex.save({_key: "A"});
|
vertex.save({_key: "A"});
|
||||||
vertex.save({_key: "B"});
|
vertex.save({_key: "B"});
|
||||||
|
@ -847,8 +847,8 @@ function ahuacatlQueryShortestPathTestSuite () {
|
||||||
db._drop(vn);
|
db._drop(vn);
|
||||||
db._drop(en);
|
db._drop(en);
|
||||||
|
|
||||||
vertexCollection = db._create(vn);
|
vertexCollection = db._create(vn, {numberOfShards: 4});
|
||||||
edgeCollection = db._createEdgeCollection(en);
|
edgeCollection = db._createEdgeCollection(en, {numberOfShards: 4});
|
||||||
|
|
||||||
[ "A", "B", "C", "D", "E", "F", "G", "H" ].forEach(function (item) {
|
[ "A", "B", "C", "D", "E", "F", "G", "H" ].forEach(function (item) {
|
||||||
vertexCollection.save({ _key: item, name: item });
|
vertexCollection.save({ _key: item, name: item });
|
||||||
|
@ -1010,8 +1010,8 @@ function ahuacatlQueryNeighborsErrorsSuite () {
|
||||||
db._drop(en);
|
db._drop(en);
|
||||||
internal.debugClearFailAt();
|
internal.debugClearFailAt();
|
||||||
|
|
||||||
vertexCollection = db._create(vn);
|
vertexCollection = db._create(vn, {numberOfShards: 4});
|
||||||
edgeCollection = db._createEdgeCollection(en);
|
edgeCollection = db._createEdgeCollection(en, {numberOfShards: 4});
|
||||||
|
|
||||||
[ "A", "B", "C", "D" ].forEach(function (item) {
|
[ "A", "B", "C", "D" ].forEach(function (item) {
|
||||||
vertexCollection.save({ _key: item, name: item });
|
vertexCollection.save({ _key: item, name: item });
|
||||||
|
@ -1099,8 +1099,8 @@ function ahuacatlQueryShortestpathErrorsSuite () {
|
||||||
db._drop(en);
|
db._drop(en);
|
||||||
internal.debugClearFailAt();
|
internal.debugClearFailAt();
|
||||||
|
|
||||||
vertexCollection = db._create(vn);
|
vertexCollection = db._create(vn, {numberOfShards: 4});
|
||||||
edgeCollection = db._createEdgeCollection(en);
|
edgeCollection = db._createEdgeCollection(en, {numberOfShards: 4});
|
||||||
|
|
||||||
[ "A", "B", "C", "D" ].forEach(function (item) {
|
[ "A", "B", "C", "D" ].forEach(function (item) {
|
||||||
vertexCollection.save({ _key: item, name: item });
|
vertexCollection.save({ _key: item, name: item });
|
||||||
|
@ -1182,4 +1182,3 @@ if (internal.debugCanUseFailAt() && ! cluster.isCluster()) {
|
||||||
jsunity.run(ahuacatlQueryShortestpathErrorsSuite);
|
jsunity.run(ahuacatlQueryShortestpathErrorsSuite);
|
||||||
}
|
}
|
||||||
return jsunity.done();
|
return jsunity.done();
|
||||||
|
|
||||||
|
|
|
@ -938,6 +938,8 @@ uint64_t VelocyPackHelper::hashByAttributes(
|
||||||
}
|
}
|
||||||
hash = sub.normalizedHash(hash);
|
hash = sub.normalizedHash(hash);
|
||||||
}
|
}
|
||||||
|
} else if (slice.isString() && attributes.size() == 1 && attributes[0] == StaticStrings::KeyString) {
|
||||||
|
hash = slice.normalizedHash(hash);
|
||||||
}
|
}
|
||||||
return hash;
|
return hash;
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,28 @@
|
||||||
|
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if test -z ${CXX}; then
|
||||||
|
export CC=gcc
|
||||||
|
export CXX=g++
|
||||||
|
fi
|
||||||
|
|
||||||
|
export CPU_CORES=$(grep -c ^processor /proc/cpuinfo)
|
||||||
|
|
||||||
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
|
cd ${DIR}/..
|
||||||
|
|
||||||
|
./Installation/Jenkins/build.sh \
|
||||||
|
standard \
|
||||||
|
--rpath \
|
||||||
|
--parallel ${CPU_CORES} \
|
||||||
|
--package TGZ \
|
||||||
|
--snap \
|
||||||
|
--buildDir build-snap \
|
||||||
|
--targetDir /var/tmp/ \
|
||||||
|
--noopt \
|
||||||
|
$@
|
||||||
|
|
||||||
|
cd ${DIR}/..
|
Loading…
Reference in New Issue