  
    TRI_voc_cid_t cid = _documentCollection->base._cid;
  
-@@ -538,6 +542,7 @@ bool RestDocumentHandler::readAllDocuments () {
+@@ -538,6 +545,7 @@ bool RestDocumentHandler::readAllDocuments () {
    }
    
    _documentCollection->endRead(_documentCollection);

 
   // .............................................................................
   // outside read transaction
@@ -715,7 +720,8 @@ bool RestDocumentHandler::updateDocument () {
   // inside write transaction
   // .............................................................................
 

 }
 
diff --git a/arangod/RestHandler/RestDocumentHandler.cpp b/arangod/RestHandler/RestDocumentHandler.cpp
index e8fb467..b860cf3 100644
--- a/arangod/RestHandler/RestDocumentHandler.cpp
+++ b/arangod/RestHandler/RestDocumentHandler.cpp
@@ -270,13 +270,16 @@ bool RestDocumentHandler::createDocument () {
   // inside write transaction
   // .............................................................................
 
