davisp commented on a change in pull request #1842: Implement partition size 
limits
URL: https://github.com/apache/couchdb/pull/1842#discussion_r248015140
 
 

 ##########
 File path: src/couch/src/couch_db_updater.erl
 ##########
 @@ -595,6 +606,16 @@ merge_rev_tree(OldInfo, NewDoc, _Client, true) ->
     {NewTree, _} = couch_key_tree:merge(OldTree, NewTree0),
     OldInfo#full_doc_info{rev_tree = NewTree}.
 
+is_overflowed(_New, _Old, []) ->
+    false;
+is_overflowed(Old, Old, _FullPartitions) ->
+    false;
+is_overflowed(New, Old, FullPartitions) ->
+    Partition = couch_partition:from_docid(New#full_doc_info.id),
 
 Review comment:
   Actually, take a look at how I fixed this one @eiri. I'm not 100% happy but 
it was the least worst I could think of to filter our _design docs.

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