Skip to content
This repository was archived by the owner on Jul 16, 2020. It is now read-only.

Minor datastore/database cleanups#983

Merged
markdryan merged 4 commits into
ciao-project:masterfrom
rbradford:datastore-cleanup
Jan 6, 2017
Merged

Minor datastore/database cleanups#983
markdryan merged 4 commits into
ciao-project:masterfrom
rbradford:datastore-cleanup

Conversation

@rbradford

Copy link
Copy Markdown
Contributor

In #921 I mention a few areas where the database code can be tidied-up from my previous digs into that code. This PR addresses some of the easiest changes via automated renames.

When the database code was pulled out from the datastore some functions
didn't have their DB suffixes removed. This change renames those
functions.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
Use the same variable names for the temporary variables as will be used
for the struct member.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
Rename some create and remove prefixes to add and delete to give some
consistency across the persistent store API.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This served no purpose in the current abstraction as all DB actions do
not cache their result. The caching occurs at the datastore layer.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
@coveralls

coveralls commented Jan 4, 2017

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.009%) to 66.441% when pulling 1f1d56a on rbradford:datastore-cleanup into 0ffc205 on 01org:master.

@markdryan markdryan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks okay to me and passes BAT.

@tpepper tpepper left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice readability improvement.

@markdryan

Copy link
Copy Markdown
Contributor

@kaccardi Is this one okay for you?

@kaccardi kaccardi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM - thanks!

@markdryan markdryan merged commit 757ec97 into ciao-project:master Jan 6, 2017
@rbradford rbradford deleted the datastore-cleanup branch February 21, 2017 15:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants