-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Repair UUIDs duplicates (storage 3.1 upgrade) (#143)
* Check if candidate uuid does not already exist before returning it * Use get_keys() to iterate through entries Else it can't be ran with mtt * Do not give an initial value to candidate_uuid Triggers luacheck because the blank value is unused. Just give it nil value. * Add repairing storage script in migrate.lua * Remove goto statements Due to uncompatibility with LuaJIT * Optimize functions * Merge duplicated functions between migrate.lua and util/uuid.lua * Mark repair has been done by incremeting version to 3.1 * Remove checking all UUIDs for generating new one The risk is ridiculous compared to the performance lost, even for several millions of messages. * Revert util/uuid.lua changes to master * Rename repair_box() to fix_duplicate_uuids()
- Loading branch information
Showing
1 changed file
with
99 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters