Revision 333639646462 () - Diff

Link to this snippet: https://friendpaste.com/s3PjhxzMQeaboSa5dDEi0
Embed:
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/couchdb/couch_btree_copy.erl b/src/couchdb/couch_btree_copy.erl
index 8b15a5c..afc7701 100644
--- a/src/couchdb/couch_btree_copy.erl
+++ b/src/couchdb/couch_btree_copy.erl
@@ -167,7 +167,7 @@ finish_copy(#acc{cur_level = Level, max_level = Level, nodes = Nodes} = Acc) ->
finish_copy(#acc{cur_level = Level, nodes = Nodes} = Acc) ->
case dict:fetch(Level, Nodes) of
- [] when Level =:= 1 ->
+ [] ->
Acc2 = Acc#acc{cur_level = Level + 1},
finish_copy(Acc2);
[{LastKey, _} | _] = NodeList ->