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

chore(db): redirect write queries to master in clustered setups #48712

Closed
wants to merge 5 commits into from

Conversation

solracsf
Copy link
Member

Todo

  • CI

Checklist

@solracsf solracsf added 3. to review Waiting for reviews feature: database Database related DB labels Oct 15, 2024
@solracsf solracsf added this to the Nextcloud 31 milestone Oct 15, 2024
Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sane

@@ -1303,7 +1302,7 @@ public function deleteCommentsAtObject($objectType, $objectId) {
->andWhere($qb->expr()->eq('object_id', $qb->createParameter('id')))
->setParameter('type', $objectType)
->setParameter('id', $objectId)
->execute();
->executeStatement();

$this->commentsCache = [];

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is_int below can go

@solracsf solracsf force-pushed the dbQueriesToMaster branch 4 times, most recently from 7eea27b to f76e605 Compare October 15, 2024 12:38
fix: psalm baseline

fix: remove is_int

fix: return bool

fix: lint

fix: lint
fix: psalm baseline

fix: remove is_int

fix: return bool

fix: lint

fix: cache

fix: constraint violation

fix: typo

fix: tests
@solracsf solracsf added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Oct 15, 2024
@solracsf
Copy link
Member Author

CI is failing. I'll debug it ASAP.

@solracsf solracsf marked this pull request as draft October 15, 2024 18:10
@solracsf solracsf closed this Oct 16, 2024
@solracsf solracsf deleted the dbQueriesToMaster branch October 16, 2024 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. developing Work in progress feature: database Database related DB
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants