summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul J. Davis <paul.joseph.davis@gmail.com>2018-02-14 13:28:34 -0600
committerPaul J. Davis <paul.joseph.davis@gmail.com>2018-02-28 10:32:43 -0600
commit364ea209250df169f0c7425cf0003e20a5a2d28d (patch)
tree69c55a3b01f22fb75a21cc9958433fa30acd1fce
parent083239353e919e897b97e8a96ee07cb42ca4eccd (diff)
downloadcouchdb-364ea209250df169f0c7425cf0003e20a5a2d28d.tar.gz
Remove old rolling reboot upgrade code
This relied on having introspection into the state of a #doc{} record that is no longer valid with PSE. This is a harmless change as it was only necessary when performing a rolling reboot to a version that included the new get_meta_body_size function. We can remove it now because anyone wanting to do a rolling reboot with PSE will have to step through a version that includes commit aee57bf which includes the previous upgrade logic as well.
-rw-r--r--src/couch/src/couch_db_updater.erl10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/couch/src/couch_db_updater.erl b/src/couch/src/couch_db_updater.erl
index ca61e04c6..56f497fb4 100644
--- a/src/couch/src/couch_db_updater.erl
+++ b/src/couch/src/couch_db_updater.erl
@@ -1467,13 +1467,9 @@ make_doc_summary(#db{compression = Comp}, {Body0, Atts0}) ->
couch_file:assemble_file_chunk(SummaryBin, crypto:hash(md5, SummaryBin)).
-get_meta_body_size(Meta, Summary) ->
- case lists:keyfind(ejson_size, 1, Meta) of
- {ejson_size, ExternalSize} ->
- ExternalSize;
- false ->
- couch_compress:uncompressed_size(Summary)
- end.
+get_meta_body_size(Meta) ->
+ {ejson_size, ExternalSize} = lists:keyfind(ejson_size, 1, Meta),
+ ExternalSize.
default_security_object(<<"shards/", _/binary>>) ->