-
Notifications
You must be signed in to change notification settings - Fork 831
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
Feature/license feature v2 #18518
base: devel
Are you sure you want to change the base?
Feature/license feature v2 #18518
Conversation
…ture/license-feature-v2
This is the New PR, please ignore old one |
…ture/license-feature-v2
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.
NumberOfCoresCache
and PhysicalMemoryCache
are all local to their compilation unit. (also true for enterprise) Just remove the declaration and everything should still work.
struct NumberOfCoresCache { | ||
NumberOfCoresCache(); | ||
std::atomic<std::size_t> cachedValue; | ||
std::atomic<bool> overridden; | ||
}; |
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.
This class is unimplemented. It is not the same class as NumberOfCoresCache
defined in an anonymous namespace in NumberOfCores.cpp
. It this declaration used anywhere?
struct PhysicalMemoryCache { | ||
PhysicalMemoryCache(); | ||
std::atomic<uint64_t> cachedValue; | ||
std::atomic<bool> overridden; | ||
}; |
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.
Same as above.
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.
Turns out it is used in the enterprise repository. Calling the constructor of this class will result in a linker error in the community branch.
…ture/license-feature-v2
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.
I think the determination of the database path is buggy. This needs to be fixed.
@@ -37,6 +37,7 @@ | |||
#include "ProgramOptions/Parameters.h" | |||
#include "ProgramOptions/ProgramOptions.h" | |||
#include "ProgramOptions/Section.h" | |||
#include "RestServer/RestartAction.h" |
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.
This seems unnecessary.
@@ -98,6 +98,23 @@ ArangoGlobalContext::ArangoGlobalContext(int /*argc*/, char* argv[], | |||
#endif | |||
#endif | |||
|
|||
bool lastOptionName{false}; |
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.
What is this magic for? What happens if the database directory is not given on the command line? Don't we have a DatabasePathFeature for this?
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.
I also do not understand the logic with lastOptionName
.
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.
I think this is buggy.
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.
At the very least it deserves an explanation.
I have to say that in particular on the last day before a code freeze it is of special importance that all is done such that reviewers have it easy. Contrary to our agreed best practice, this PR:
|
Scope & Purpose
Expand license feature for resources and components
Checklist
Related Information
(Please reference tickets / specification / other PRs etc)