mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'engine-api' of https://github.com/arangodb/arangodb into engine-api
This commit is contained in:
commit
61791509d6
|
@ -164,9 +164,8 @@ bool Cache::isResizing() {
|
|||
}
|
||||
|
||||
bool Cache::isShutdown() {
|
||||
bool shutdown = false;
|
||||
_state.lock();
|
||||
shutdown = !isOperational();
|
||||
bool shutdown = !isOperational();
|
||||
_state.unlock();
|
||||
|
||||
return shutdown;
|
||||
|
|
|
@ -106,7 +106,7 @@ void AttributeWeightShortestPathFinder::SearcherTwoThreads::lookupPeer(
|
|||
// Did we find a solution on our own? This is for the
|
||||
// single thread case and for the case that the other
|
||||
// thread is too slow to even finish its own start vertex!
|
||||
if (s->weight() == 0) {
|
||||
if (s->weight() == 0.0) {
|
||||
// We have found the target, we have finished all
|
||||
// vertices with a smaller weight than this one (and did
|
||||
// not succeed), so this must be a best solution:
|
||||
|
|
|
@ -52,7 +52,7 @@ class AttributeWeightShortestPathFinder : public ShortestPathFinder {
|
|||
arangodb::velocypack::Slice _edge;
|
||||
bool _done;
|
||||
|
||||
Step() : _done(false) {}
|
||||
Step() : _weight(0.0), _done(false) {}
|
||||
|
||||
Step(arangodb::velocypack::Slice const& vert,
|
||||
arangodb::velocypack::Slice const& pred, double weig,
|
||||
|
|
Loading…
Reference in New Issue