Skip to content

Misc cleanup in libpagestore.c. #163

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

Merged
merged 3 commits into from
Jul 5, 2022
Merged

Misc cleanup in libpagestore.c. #163

merged 3 commits into from
Jul 5, 2022

Conversation

hlinnaka
Copy link
Contributor

  • Fix typos
  • Change Zenith -> Neon in the ZENITH_SMGR tag that's printed in error
    messages that is user-visible, and in various function names and comments
    that are not user-visible.
  • pgindent
  • Remove comment about zm_to_string() leaking memory. It doesn't.
  • Re-word some error messages to match PostgreSQL error message style guide

@hlinnaka hlinnaka requested review from lubennikovaav and MMeent May 16, 2022 10:12
@hlinnaka
Copy link
Contributor Author

We could do a lot more, for the rebranding and cleanup in general. But this is a start.

Copy link

@MMeent MMeent left a comment

Choose a reason for hiding this comment

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

I'd like to see the duplicate log tags fixed, the others are just nits. Note that these tags are located in more than just the places I've commented on.

errhidestmt(true), errhidecontext(true)))

bool connected = false;
PGconn *pageserver_conn = NULL;

char *page_server_connstring_raw;

static ZenithResponse *zenith_call(ZenithRequest *request);
static ZenithResponse *pageserver_call(ZenithRequest *request);
Copy link

Choose a reason for hiding this comment

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

Is the renaming of Zenith[Response, Request] excluded from this patch's efforts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I left that for another path.

@hlinnaka hlinnaka force-pushed the cleanup-libpagestore branch from f5e592f to a309822 Compare May 27, 2022 18:37
@hlinnaka
Copy link
Contributor Author

Rebased and fixed the stuff that @MMeent pointed out

@hlinnaka hlinnaka requested a review from MMeent May 27, 2022 18:38
hlinnaka added 2 commits June 22, 2022 12:42
- Fix typos
- Change Zenith -> Neon in the ZENITH_SMGR tag that's printed in error
  messages that is user-visible, and in various function names and comments
  that are not user-visible.
- pgindent
- Remove comment about zm_to_string() leaking memory. It doesn't.
- Re-word some error messages to match PostgreSQL error message style guide
@hlinnaka hlinnaka force-pushed the cleanup-libpagestore branch from a309822 to 5c3925f Compare June 22, 2022 09:44
hlinnaka added a commit to neondatabase/neon that referenced this pull request Jun 22, 2022
hlinnaka added a commit to neondatabase/neon that referenced this pull request Jun 22, 2022
hlinnaka added a commit to neondatabase/neon that referenced this pull request Jun 30, 2022
Contains changes from two PRs in vendor/postgres:
- neondatabase/postgres#163
- neondatabase/postgres#176
hlinnaka added a commit to neondatabase/neon that referenced this pull request Jul 5, 2022
Contains changes from two PRs in vendor/postgres:
- neondatabase/postgres#163
- neondatabase/postgres#176
@hlinnaka hlinnaka merged commit 35ad142 into main Jul 5, 2022
@hlinnaka hlinnaka deleted the cleanup-libpagestore branch July 5, 2022 08:13
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.

3 participants