Skip to content

Fix bug that caused existing pastes to be overwritten after restart#7

Open
jonjensen wants to merge 1 commit intorcaputo:masterfrom
jonjensen:master
Open

Fix bug that caused existing pastes to be overwritten after restart#7
jonjensen wants to merge 1 commit intorcaputo:masterfrom
jonjensen:master

Conversation

@jonjensen
Copy link

The existing paste IDs were being sorted as strings, not numbers,
so the "highest" one was often not really the highest one, and the
when the next assigned ID already existed, that paste was silently
overwritten.

The existing paste IDs were being sorted as strings, not numbers,
so the "highest" one was often not really the highest one, and the
when the next assigned ID already existed, that paste was silently
overwritten.
@ezekiel
Copy link

ezekiel commented Mar 7, 2017

@rcaputo this simple patch looks like it fixes an important bug. Any feedback, or willing to merge?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants