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(DB): set sharding parameters only when intended #47611

Merged
merged 4 commits into from
Aug 29, 2024

Conversation

blizzz
Copy link
Member

@blizzz blizzz commented Aug 29, 2024

Summary

32bit setup fails to due to AutoIncrementHandler

Checklist

@blizzz blizzz added bug 3. to review Waiting for reviews labels Aug 29, 2024
@blizzz blizzz requested review from artonge, sorbaugh, come-nc and a team August 29, 2024 17:17
Copy link
Member

@AndyScherzinger AndyScherzinger left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@juliushaertl juliushaertl left a comment

Choose a reason for hiding this comment

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

Looks reasonable

@blizzz
Copy link
Member Author

blizzz commented Aug 29, 2024

More complicated, as \OC\DB\Connection does initialize them anyway, does not consider the dbsharding flag and assume it is always set up.

@blizzz
Copy link
Member Author

blizzz commented Aug 29, 2024

More complicated, as \OC\DB\Connection does initialize them anyway, does not consider the dbsharding flag and assume it is always set up.

ah, partly because the configkey is misspelled there… $shardConfig = $this->params['sharding'] ?? [];.

Someone should invent constants 🤪

UPDATE: PEBCAK 🤪

@blizzz
Copy link
Member Author

blizzz commented Aug 29, 2024

@juliushaertl if you could throw another eyeball on the new commit 🙇

@AndyScherzinger
Copy link
Member

Second commit also looks good to me 👍 @blizzz

lib/private/DB/Connection.php Fixed Show fixed Hide fixed
lib/private/DB/Connection.php Fixed Show fixed Hide fixed
@juliushaertl
Copy link
Member

Also looks good 👍

@blizzz blizzz merged commit 4accba8 into master Aug 29, 2024
175 of 176 checks passed
@blizzz blizzz deleted the fix/noid/no-sharding-32 branch August 29, 2024 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants