1
0
Fork 0

fix truncate operation in synchronous replication (#10492)

This commit is contained in:
Jan 2019-11-21 08:51:07 +01:00 committed by GitHub
parent 9f4926bfec
commit d3b00d60cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -2457,6 +2457,8 @@ Future<OperationResult> transaction::Methods::truncateLocal(std::string const& c
"/_api/collection/" + arangodb::basics::StringUtils::urlEncode(collectionName) +
"/truncate";
VPackBuffer<uint8_t> body;
VPackSlice s = VPackSlice::emptyObjectSlice();
body.append(s.start(), s.byteSize());
// Now prepare the requests:
std::vector<network::FutureRes> futures;