mirror of https://gitee.com/bigwinds/arangodb
Replaced old version of cluster communication using ?rev= with new if-match header
This commit is contained in:
parent
187b8e4770
commit
4bdb090357
|
@ -659,7 +659,7 @@ int deleteDocumentOnCoordinator(
|
||||||
// Some stuff to prepare cluster-intern requests:
|
// Some stuff to prepare cluster-intern requests:
|
||||||
std::string revstr;
|
std::string revstr;
|
||||||
if (rev != 0) {
|
if (rev != 0) {
|
||||||
revstr = "&rev=" + StringUtils::itoa(rev);
|
headers->emplace("if-match", StringUtils::itoa(rev));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (usesDefaultShardingAttributes) {
|
if (usesDefaultShardingAttributes) {
|
||||||
|
@ -825,7 +825,7 @@ int getDocumentOnCoordinator(
|
||||||
// Some stuff to prepare cluster-intern requests:
|
// Some stuff to prepare cluster-intern requests:
|
||||||
std::string revstr;
|
std::string revstr;
|
||||||
if (rev != 0) {
|
if (rev != 0) {
|
||||||
revstr = "?rev=" + StringUtils::itoa(rev);
|
headers->emplace("if-match", StringUtils::itoa(rev));
|
||||||
}
|
}
|
||||||
arangodb::rest::HttpRequest::HttpRequestType reqType;
|
arangodb::rest::HttpRequest::HttpRequestType reqType;
|
||||||
if (generateDocument) {
|
if (generateDocument) {
|
||||||
|
|
Loading…
Reference in New Issue