-
Notifications
You must be signed in to change notification settings - Fork 526
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
[optimze] optimize some metric style #2319
Comments
i will take this |
@fansehep Let me work on this |
@ashutosh887 the work going on? |
struct FSMetric {
static constexpr const char* prefix = "curvefs_client";
}; maybe this's better, if you use |
But in fact, static variables are initialized at runtime, and char* can be compile-time constants. It may depend on the scenario. I think here |
|
The issue seems more simple than other issues, can I get this task? |
Why does following classes not define const? (such as struct MDSClientMetric {
std::string prefix;
}
struct MetaServerClientMetric {
std::string prefix;
}
struct ClientOpMetric {
std::string prefix;
} |
it should be, you can fix this. |
can I do it? #2319 |
In
/curvefs/src/client/metric/client_metric.h
:Use
const std::string xxx
in astruct
type is strange.static
is right.Optimize them in all *.h and *.cpp;
The text was updated successfully, but these errors were encountered: