Problem/Motivation
If the old key and new key are identical, when calling rename() with MemoryStorage the data will be removed.
This is mitigated because MemoryStorage is only used during install (and some tests) and rename() isn't called at all.
Proposed resolution
Don't erase the data.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3031130-rename-2-PASS.patch | 1.46 KB | tim.plunkett |
| #2 | 3031130-rename-2-FAIL.patch | 878 bytes | tim.plunkett |
Comments
Comment #2
tim.plunkettIn theory, it makes no sense to call rename if you aren't changing the keys. But there's nothing enforcing that... Which is why I think this is correct.
If I were writing this as a new interface I would consider throwing an exception if the keys are identical. But too late for that.
Comment #10
jeroentCode looks good and patch still applies.
Comment #11
alexpottCommitted and pushed d70a4752348 to 10.0.x and e1b059c398c to 9.4.x. Thanks!
Fixed deprecated code on commit.