Skip to content

Conversation

@rgmiller
Copy link
Contributor

@rgmiller rgmiller commented Jul 27, 2021

Description

If unifyfsd was started without specifying the shared dir, unifyfs_fskv_init() would not actually initialize the K/V store, but it would return success. This commit adds code to check for that condition and, if the condition is found, return an error and write an appropriate message to the error log.

Note: most of the changes shown in the diff are actually whitespace. (A bunch of code got indented one level.) There's only a handful of new lines of code.

Motivation and Context

Fixes issue #652

How Has This Been Tested?

Tested on an Unbuntu workstation.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Testing (addition of new tests or update to current tests)
  • Documentation (a change to man pages or other documentation)

Checklist:

  • My code follows the UnifyFS code style requirements.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • All commit messages are properly formatted.

Copy link
Collaborator

@MichaelBrim MichaelBrim left a comment

Choose a reason for hiding this comment

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

The fix looks good to me, but you should squash/rebase to make it one commit instead of two.

@rgmiller
Copy link
Contributor Author

The fix looks good to me, but you should squash/rebase to make it one commit instead of two.

Can I modify this PR to do that? Or should I delete the PR and create a new one?

@MichaelBrim
Copy link
Collaborator

Do the rebase in your branch, then force push. The PR will automagically pick up the branch change.

If unifyfsd was started with specifying the shared dir,
unifyfs_fskv_init() would not actually initialize the K/V store, but it
would return success.

This commit adds code to check for that condition and return an error
(and write an appropriate message to the error log).

Also, a couple of tweaks to match the UnifyFS style guide.
@rgmiller rgmiller requested a review from MichaelBrim July 28, 2021 18:39
@adammoody adammoody merged commit 70b24ad into llnl:dev Jul 30, 2021
@adammoody
Copy link
Collaborator

Nice work, @rgmiller and @MichaelBrim .

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