8000 fixed issue #6076: Segmentation fault after AQL query (#6081) · mnemosdev/arangodb@40edf31 · GitHub
[go: up one dir, main page]

Skip to content

Commit 40edf31

Browse files
authored
fixed issue arangodb#6076: Segmentation fault after AQL query (arangodb#6081)
1 parent 75ce68f commit 40edf31

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
v3.3.14 (XXXX-XX-XX)
22
--------------------
3+
4+
* fixed issue #6076: Segmentation fault after AQL query
5+
36
* fixed issue #5884: Subquery nodes are no longer created on DBServers
47

58
* fixed issue #6031: Broken LIMIT in nested list iterations

arangod/Cluster/ServerState.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ static ServerState Instance;
5555

5656
ServerState::ServerState()
5757
: _id(),
58+
_shortId(0),
5859
_address(),
5960
_lock(),
6061
_role(RoleEnum::ROLE_UNDEFINED),

arangod/GeneralServer/RestHandler.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include "Cluster/ClusterComm.h"
3030
#include "Cluster/ClusterInfo.h"
3131
#include "Cluster/ClusterMethods.h"
32+
#include "Cluster/ServerState.h"
3233
#include "GeneralServer/AuthenticationFeature.h"
3334
#include "GeneralServer/GeneralCommTask.h"
3435
#include "Logger/Logger.h"
@@ -105,6 +106,10 @@ void RestHandler::setStatistics(RequestStatistics* stat) {
105106
}
106107

107108
bool RestHandler::forwardRequest() {
109+
if (!ServerState::instance()->isCoordinator()) {
110+
return false;
111+
}
112+
108113
// TODO refactor into a more general/customizable method< 41E8 /span>
109114
//
110115
// The below is mostly copied and only lightly modified from

0 commit comments

Comments
 (0)
0