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

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

 
   bool waitForSync = _documentCollection->base._waitForSync;
   TRI_voc_cid_t cid = _documentCollection->base._cid;
 
   // note: unlocked is performed by createJson()
+  LOGGER_TRACE << "creating document";
   TRI_doc_mptr_t const mptr = _documentCollection->createJson(_documentCollection, TRI_DOC_MARKER_DOCUMENT, json, 0, reuseId, true);
+  LOGGER_TRACE << "finished creating document";
 
   // .............................................................................
   // outside write transaction
@@ -284,6 +287,7 @@ bool RestDocumentHandler::createDocument () {
 
   // release collection and free json
   releaseCollection();
+  LOGGER_TRACE << "released collection again";
 
   // generate result
   if (mptr._did != 0) {
@@ -415,12 +419,14 @@ bool RestDocumentHandler::readSingleDocument (bool generateBody) {
   // inside read transaction
   // .............................................................................
 
