diff options
author | Siri Hansen <[email protected]> | 2011-07-07 10:58:57 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2011-07-07 10:58:57 +0200 |
commit | d92cf25f90a398c7f17466f804df020586cb2c1f (patch) | |
tree | 875ec1e2dc85c4217fc3aa3fa73b9412adf87906 /lib/megaco/src/text/megaco_pretty_text_encoder_v2.erl | |
parent | ce834798d7f08d5869f11a1cb81e49ca7d5db3b8 (diff) | |
download | otp-d92cf25f90a398c7f17466f804df020586cb2c1f.tar.gz otp-d92cf25f90a398c7f17466f804df020586cb2c1f.tar.bz2 otp-d92cf25f90a398c7f17466f804df020586cb2c1f.zip |
Allow appup instruction delete_module module which is not loaded
The appup instruction 'delete_module' would cause a crash during
upgrade if the module to be deleted was not loaded. The reason was
that the release_handler tried to read the version number of the old
module after the code path had changed to point to the new version of
the application. Thus, if the module had not been loaded before the
upgrade, there would no longer be any such module in the path
(delete_module indicates that the module is deleted from the new
version of the application).
This is corrected by letting the release_handler read the old version
of the module only if the module is updated - not if it is
removed. And it is always read before the code path is changed.
Diffstat (limited to 'lib/megaco/src/text/megaco_pretty_text_encoder_v2.erl')
0 files changed, 0 insertions, 0 deletions