Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add repair job to deleted duplicated cached messages #9765

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

st3iny
Copy link
Member

@st3iny st3iny commented Jun 20, 2024

This prepares the database to the make the mailbox_id + uid index unique. Currently, there might be some duplicated cached message which are unique. They were most likely inserted twice due to a race condition.

$event->replaceIndex(
'mail_messages',
['mail_messages_mb_id_uid'],
'mail_messages_mb_id_uid_uidx',
['mailbox_id', 'uid'],
true
);

Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
@st3iny st3iny self-assigned this Jun 20, 2024
@st3iny st3iny added this to the v3.8.0 milestone Jun 20, 2024
@st3iny st3iny merged commit e9224a8 into main Jun 21, 2024
34 of 35 checks passed
@st3iny st3iny deleted the fix/delete-duplicated-messages branch June 21, 2024 12:30
@st3iny
Copy link
Member Author

st3iny commented Jul 1, 2024

/backport to stable 3.7

@st3iny
Copy link
Member Author

st3iny commented Jul 1, 2024

/backport to stable3.7

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

Successfully merging this pull request may close these issues.

None yet

2 participants