janl closed pull request #1029: Fix: Added a temporary fix to avoid compaction 
failures #1001
URL: https://github.com/apache/couchdb/pull/1029
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/src/couchdb/couch_db_updater.erl b/src/couchdb/couch_db_updater.erl
index c92097f62c..4a783aad0b 100644
--- a/src/couchdb/couch_db_updater.erl
+++ b/src/couchdb/couch_db_updater.erl
@@ -884,7 +884,10 @@ copy_docs(Db, #db{updater_fd = DestFd} = NewDb, 
InfoBySeq0, Retry) ->
                         fun({_, _, _, AttLen, _, _, _, _}, S) -> S + AttLen 
end,
                         SummarySize, AttsInfo),
                     {IsDel, Pos, Seq, TotalLeafSize}
-                end, RevTree)}
+                end, RevTree)};
+        (U) ->
+             ?LOG_INFO("Drop a document from compaction: not found in db : 
~p", [U]),
+            []
         end, LookupResults),
 
     NewFullDocInfos = stem_full_doc_infos(Db, NewFullDocInfos1),


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to