-
Notifications
You must be signed in to change notification settings - Fork 289
Initial consolidation of global state #3197
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
Conversation
Provide macro constants for all sources for AWS key values. The possible sources and prefix names are as follows: | Source | Macro Prefix | |--------------------|--------------| | getenv() Variables | AWS_ENV_XXX | | .rc file keys | AWS_RC_XXX | | .aws profiles | AWS_PROF_XXX| | URL fragment keys | AWS_FRAG_XXX| * The macros are in include/ncs3sdk.h. * Some previous macros in other files have been removed.
Provide macro constants for all sources for AWS key values. The possible sources and prefix names are as follows: | Source | Macro Prefix | |--------------------|--------------| | getenv() Variables | AWS_ENV_XXX | | .rc file keys | AWS_RC_XXX | | .aws profiles | AWS_PROF_XXX| | URL fragment keys | AWS_FRAG_XXX| * The macros are in include/ncs3sdk.h. * Some previous macros in other files have been removed.
…tcdf-c into s3global.tmp
Begin the consolidation of global state into two files: libdispatch/dglobal.c and include/ncglobal.h.
## Primary Changes
* New files: include/ncglobal.h and libdispatch/dglobal.c.
* Refactor NCglobalstate decls from nc4internal.h to ncglobal.h.
* Refactor NCglobalstate implementation from nc4internal.c and ddispatch.c to dglobal.c.
* Replace/augment ``#include "nc4internal.h"`` with ``#include "ncglobal.h"``.
* Refactor ChunkCache implementation from nc4internal.c to dglobal.c.
* Side effect: clear chunkcache using memset.
## Secondary Changes
* Modify ncs3sdk.h to define new macros for a variety of AWS keys for environment variables, .aws/config profile keys, AWS-related .ncrc keys, and AWS URI fragment keys.
* Side effect: replace old macros and in-line string constants with the new macros. Changes primarily in libdispatch/ds3util.c and libdispatch/ncs3sdk_h5.c.
* Fix a problem in some tests in nczarr_test: modify cp, unzip and gunzip to remove target before overwriting.
* Fix minor bug in libdap4/d4meta.c
* Fix minor bug in plugins/H5Zshuffle.c.
* Modify nclog to ensure that error log messages always get printed irrespective of the logging state.
WardF
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dennis, is this PR still good to be merged? I'm working my way up, and still need to review the PR (and comments) from DRKZ.
|
Yes, it can be merged, but since we are so close to getting mannreis zmetadata prs merged I would probably |
|
Ok, I updated this PR to include the zmetadata-containing PR. So it should ready to go at your leisure. |
Begin the consolidation of global state into two files: libdispatch/dglobal.c and include/ncglobal.h.
Primary Changes
#include "nc4internal.h"with#include "ncglobal.h".Secondary Changes