Skip to content

Fix exclude primary with no replicas#808

Merged
levkk merged 3 commits intopgdogdev:mainfrom
meetcleo:fix-exclude-primary-with-no-replicas
Mar 4, 2026
Merged

Fix exclude primary with no replicas#808
levkk merged 3 commits intopgdogdev:mainfrom
meetcleo:fix-exclude-primary-with-no-replicas

Conversation

@mijoharas
Copy link
Contributor

As above, fixes #804

@codecov
Copy link

codecov bot commented Mar 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@mijoharas mijoharas force-pushed the fix-exclude-primary-with-no-replicas branch from 7869c79 to 353ba08 Compare March 4, 2026 12:36
@mijoharas
Copy link
Contributor Author

oh, one other thing that's tangentially related. I keep getting bindings changes, I've been ignoring and not committing them, but just wanted to check that's what we should be doing?

@levkk levkk merged commit b0c6c7e into pgdogdev:main Mar 4, 2026
8 checks passed
@levkk
Copy link
Collaborator

levkk commented Mar 4, 2026

oh, one other thing that's tangentially related. I keep getting bindings changes, I've been ignoring and not committing them, but just wanted to check that's what we should be doing?

Ah yeah, we should of gitignored that one. I tried to make git ignore all future changes to that file, with no success. You can commit those or not - they are regenerated at build time anyway.

@mijoharas
Copy link
Contributor Author

Oh... it's already in .gitignore... I thought that worked? Hmmm... there are some hacks here:
https://stackoverflow.com/questions/3319479/can-i-git-commit-a-file-and-ignore-its-content-changes
but it says they're recommended against.

Should we just git rm it and commit (I can raise a PR for that if you want)? gitignore should then keep it ignored after that I think.

@mijoharas
Copy link
Contributor Author

oh... no the build fails if that's removed... because we have pub mod bindings in lib.rs 🤔 . So the build.rs generates the file, but we need that to happen before it tries to load lib, which it does as part of the build...

Bit of a catch-22 here.

@mijoharas
Copy link
Contributor Author

ok, I've got something here: #809

levkk pushed a commit that referenced this pull request Mar 4, 2026
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.

Make read_write_split a per database configuration option.

2 participants