From 3e2e14d800e33cacfe2a350ffdb02a8be638e676 Mon Sep 17 00:00:00 2001 From: Jan Steemann Date: Mon, 22 Feb 2016 16:30:56 +0100 Subject: [PATCH] truncate() --- arangod/Utils/Transaction.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arangod/Utils/Transaction.cpp b/arangod/Utils/Transaction.cpp index ea432a5468..a45e725091 100644 --- a/arangod/Utils/Transaction.cpp +++ b/arangod/Utils/Transaction.cpp @@ -1607,10 +1607,10 @@ OperationCursor Transaction::indexScan( if (idx == nullptr) { THROW_ARANGO_EXCEPTION_MESSAGE( TRI_ERROR_ARANGO_INDEX_NOT_FOUND, - "Could not find primary index in collection '" + collection + "'."); + "Could not find primary index in collection '" + collectionName + "'."); } - iterator = idx->anyIterator(this); + iterator.reset(idx->anyIterator(this)); break; } case CursorType::ALL: { @@ -1627,7 +1627,6 @@ OperationCursor Transaction::indexScan( "Could not find primary index in collection '" + collectionName + "'."); } - LOG(INFO) << "reverse: " << reverse; iterator.reset(idx->allIterator(this, reverse)); break; }