1
0
Fork 0

Replaced old version of cluster communication using ?rev= with new if-match header

This commit is contained in:
Michael Hackstein 2016-03-30 15:54:07 +02:00
parent 187b8e4770
commit 4bdb090357
1 changed files with 2 additions and 2 deletions

View File

@ -659,7 +659,7 @@ int deleteDocumentOnCoordinator(
// Some stuff to prepare cluster-intern requests:
std::string revstr;
if (rev != 0) {
revstr = "&rev=" + StringUtils::itoa(rev);
headers->emplace("if-match", StringUtils::itoa(rev));
}
if (usesDefaultShardingAttributes) {
@ -825,7 +825,7 @@ int getDocumentOnCoordinator(
// Some stuff to prepare cluster-intern requests:
std::string revstr;
if (rev != 0) {
revstr = "?rev=" + StringUtils::itoa(rev);
headers->emplace("if-match", StringUtils::itoa(rev));
}
arangodb::rest::HttpRequest::HttpRequestType reqType;
if (generateDocument) {