Skip to content

Refactoring of mdunlink_ao#961

Open
anterohamalainen wants to merge 1 commit intoarenadata:adb-7.1.0from
anterohamalainen:mdunlink_ao_refactoring2
Open

Refactoring of mdunlink_ao#961
anterohamalainen wants to merge 1 commit intoarenadata:adb-7.1.0from
anterohamalainen:mdunlink_ao_refactoring2

Conversation

@anterohamalainen
Copy link

  1. The relpath function was called two times.
  2. strncpy has been replaced with strcpy, because the input buffer is always of sufficient size.
  3. Place strcpy closer to palloc.
  4. Remove the segPathSuffixPosition redundant variable.
  5. Initialize all unlinkFiles fields in one statement. If someday a new field will be added to the unlinkFiles structure, then it will be initialized.

1. The relpath function was called two times.
2. strncpy has been replaced with strcpy, because the input buffer is always of
sufficient size.
3. Place strcpy closer to palloc.
4. Remove the segPathSuffixPosition redundant variable.
5. Initialize all unlinkFiles fields in one statement. If someday a new field
will be added to the unlinkFiles structure, then it will be initialized.
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.

1 participant