  
    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);

 
   // unlocking is performed in updateJson()
   TRI_voc_rid_t rid = 0;
@@ -860,7 +866,8 @@ bool RestDocumentHandler::deleteDocument () {
   // inside write transaction
   // .............................................................................
 

 
   // .............................................................................
   // outside read transaction
@@ -511,7 +517,8 @@ bool RestDocumentHandler::readAllDocuments () {
 
   vector<TRI_voc_did_t> ids;
 
