mirror of https://gitee.com/bigwinds/arangodb
inquire in agency interface adjusted
This commit is contained in:
parent
86ea92f289
commit
8441da1be1
|
@ -1074,7 +1074,8 @@ AgencyCommResult AgencyComm::sendTransactionWithFailover(
|
||||||
: timeout),
|
: timeout),
|
||||||
url, builder.slice().toJson());
|
url, builder.slice().toJson());
|
||||||
|
|
||||||
if (!result.successful() && result.httpCode() != 412) {
|
if (!result.successful() && result.httpCode() !=
|
||||||
|
(int)arangodb::rest::ResponseCode::PRECONDITION_FAILED) {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -653,7 +653,7 @@ trans_ret_t Agent::transact(query_t const& queries) {
|
||||||
|
|
||||||
|
|
||||||
// Non-persistent write to non-persisted key-value store
|
// Non-persistent write to non-persisted key-value store
|
||||||
trans_ret_t Agent::transient(query_t const& query) {
|
trans_ret_t Agent::transient(query_t const& queries) {
|
||||||
|
|
||||||
auto ret = std::make_shared<arangodb::velocypack::Builder>();
|
auto ret = std::make_shared<arangodb::velocypack::Builder>();
|
||||||
auto leader = _constituent.leaderID();
|
auto leader = _constituent.leaderID();
|
||||||
|
@ -674,7 +674,7 @@ trans_ret_t Agent::transient(query_t const& query) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Read and writes
|
// Read and writes
|
||||||
for (const auto& query : VPackArrayIterator(query->slice())) {
|
for (const auto& query : VPackArrayIterator(queries->slice())) {
|
||||||
if (query[0].isObject()) {
|
if (query[0].isObject()) {
|
||||||
_transient.apply(query);
|
_transient.apply(query);
|
||||||
} else if (query[0].isString()) {
|
} else if (query[0].isString()) {
|
||||||
|
|
Loading…
Reference in New Issue