From 235f006a27bdaad09e5222b32ff159ca3687c60c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Gra=CC=88tzer?= Date: Fri, 21 Apr 2017 13:00:30 +0200 Subject: [PATCH] const collection CRUD methods --- arangod/RocksDBEngine/RocksDBCollection.cpp | 2 +- arangod/RocksDBEngine/RocksDBCollection.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arangod/RocksDBEngine/RocksDBCollection.cpp b/arangod/RocksDBEngine/RocksDBCollection.cpp index b21a6e8306..6ddcfbe444 100644 --- a/arangod/RocksDBEngine/RocksDBCollection.cpp +++ b/arangod/RocksDBEngine/RocksDBCollection.cpp @@ -1216,7 +1216,7 @@ RocksDBOperationResult RocksDBCollection::updateDocument( Result RocksDBCollection::lookupDocumentToken(transaction::Methods* trx, arangodb::StringRef key, - RocksDBToken& outToken) { + RocksDBToken& outToken) const { TRI_ASSERT(_objectId != 0); // TODO fix as soon as we got a real primary index diff --git a/arangod/RocksDBEngine/RocksDBCollection.h b/arangod/RocksDBEngine/RocksDBCollection.h index cc70a375dc..ff25fb107e 100644 --- a/arangod/RocksDBEngine/RocksDBCollection.h +++ b/arangod/RocksDBEngine/RocksDBCollection.h @@ -180,7 +180,7 @@ class RocksDBCollection final : public PhysicalCollection { uint64_t objectId() const { return _objectId; } Result lookupDocumentToken(transaction::Methods* trx, arangodb::StringRef key, - RocksDBToken& token); + RocksDBToken& token) const; int beginWriteTimed(bool useDeadlockDetector, double timeout = 0.0);