-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Refactor Stats::RawStatData into a StatsOptions struct #3629
Commits on Jul 10, 2018
-
Refactor Stats::RawStatData into a StatsOptions struct.
This change allows us to deprecate the statics inside Stats::RawStatData. Some side effects of this change are: a) HeapRawStatDataAllocator no longer performs stat name truncation, b) we now construct BlockMemoryHashSet, HotRestartImpl, C/L/RdsSubscription, and ThreadLocalStoreImpl as functions of this Stats::StatsOptions struct, and c) Stats::RawStatData now looks more like a set of libraries for computing stat padding, as opposed to a source of truth for the maximum allowable name lengths. Finally, a chain of functions starting under server.cc (translateBootstrap, translateClusterManagerBootstrap, translateListener, translateCluster, translateVirtualHost) have had Stats::StatsOptions& added to their interfaces, so that Utility::checkObjNameLength() can be called with the necessary context. Signed-off-by: James Buckland <jbuckland@google.com>
Configuration menu - View commit details
-
Copy full SHA for bb349a1 - Browse repository at this point
Copy the full SHA bb349a1View commit details -
Store StatsOptions values as size_t
Signed-off-by: James Buckland <jbuckland@google.com>
Configuration menu - View commit details
-
Copy full SHA for 7bfa762 - Browse repository at this point
Copy the full SHA 7bfa762View commit details -
Add heapAllocator stat name truncation in ThreadLocalStore, plus nits
Signed-off-by: James Buckland <jbuckland@google.com>
Configuration menu - View commit details
-
Copy full SHA for 27990bf - Browse repository at this point
Copy the full SHA 27990bfView commit details -
Remove unused BlockMemoryHashSet accessor function
Signed-off-by: James Buckland <jbuckland@google.com>
Configuration menu - View commit details
-
Copy full SHA for b92ab75 - Browse repository at this point
Copy the full SHA b92ab75View commit details -
Rename safeInitialize() to truncateAndInit()
Signed-off-by: James Buckland <jbuckland@google.com>
Configuration menu - View commit details
-
Copy full SHA for 3a7aff1 - Browse repository at this point
Copy the full SHA 3a7aff1View commit details -
Change interface of sizeGivenName()
Signed-off-by: James Buckland <jbuckland@google.com>
Configuration menu - View commit details
-
Copy full SHA for 3f38407 - Browse repository at this point
Copy the full SHA 3f38407View commit details -
Use new translateBootstrap interface in v1_to_bootstrap
Signed-off-by: James Buckland <jbuckland@google.com>
Configuration menu - View commit details
-
Copy full SHA for 19f9f3c - Browse repository at this point
Copy the full SHA 19f9f3cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 06bd4c2 - Browse repository at this point
Copy the full SHA 06bd4c2View commit details -
Add documentation, re-trigger ci
Signed-off-by: James Buckland <jbuckland@google.com>
Configuration menu - View commit details
-
Copy full SHA for 217f72f - Browse repository at this point
Copy the full SHA 217f72fView commit details -
Rework some interfaces to pass statsOptions rather than Scope at lowe…
…r levels Signed-off-by: James Buckland <jbuckland@google.com>
Configuration menu - View commit details
-
Copy full SHA for 1ae932c - Browse repository at this point
Copy the full SHA 1ae932cView commit details -
Prefer UNREFERENCED_PARAMETER to (void)
Signed-off-by: James Buckland <jbuckland@google.com>
Configuration menu - View commit details
-
Copy full SHA for b07d5c6 - Browse repository at this point
Copy the full SHA b07d5c6View commit details -
Better inline docs for stat name / object / suffix terminology
Signed-off-by: James Buckland <jbuckland@google.com>
Configuration menu - View commit details
-
Copy full SHA for 732af4f - Browse repository at this point
Copy the full SHA 732af4fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7328dc0 - Browse repository at this point
Copy the full SHA 7328dc0View commit details
Commits on Jul 11, 2018
-
Edit stats inline documentation
Signed-off-by: James Buckland <jbuckland@google.com>
Configuration menu - View commit details
-
Copy full SHA for 71f6b24 - Browse repository at this point
Copy the full SHA 71f6b24View commit details -
Provide safe copy assertion in RawStatData::initialize()
Signed-off-by: James Buckland <jbuckland@google.com>
Configuration menu - View commit details
-
Copy full SHA for 2aa9d8c - Browse repository at this point
Copy the full SHA 2aa9d8cView commit details -
Abstract checkAndInit() and truncateAndInit() with shared initializat…
…ion logic Signed-off-by: James Buckland <jbuckland@google.com>
Configuration menu - View commit details
-
Copy full SHA for 911fc5d - Browse repository at this point
Copy the full SHA 911fc5dView commit details -
Signed-off-by: James Buckland <jbuckland@google.com>
Configuration menu - View commit details
-
Copy full SHA for dbcdb72 - Browse repository at this point
Copy the full SHA dbcdb72View commit details
Commits on Jul 12, 2018
-
Merge remote-tracking branch 'upstream/master' into refactor-StatsOpt…
…ions Signed-off-by: James Buckland <jbuckland@google.com>
Configuration menu - View commit details
-
Copy full SHA for 9a30244 - Browse repository at this point
Copy the full SHA 9a30244View commit details -
Refactor sizeGivenName(), sizeGivenStatsOptions() into structSize(), …
…structSizeWithOptions() Signed-off-by: James Buckland <jbuckland@google.com>
Configuration menu - View commit details
-
Copy full SHA for aeb9251 - Browse repository at this point
Copy the full SHA aeb9251View commit details -
Add todo addressing embedded assumption about allocator fallback
Signed-off-by: James Buckland <jbuckland@google.com>
Configuration menu - View commit details
-
Copy full SHA for cb0fd8a - Browse repository at this point
Copy the full SHA cb0fd8aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 19e0311 - Browse repository at this point
Copy the full SHA 19e0311View commit details
Commits on Jul 13, 2018
-
Throw std::bad_alloc() in HeapRawStatDataAllocator::alloc()
Signed-off-by: James Buckland <jbuckland@google.com>
Configuration menu - View commit details
-
Copy full SHA for 4cad816 - Browse repository at this point
Copy the full SHA 4cad816View commit details -
Merge remote-tracking branch 'upstream/master' into refactor-StatsOpt…
…ions Signed-off-by: James Buckland <jbuckland@google.com>
Configuration menu - View commit details
-
Copy full SHA for 9c6b880 - Browse repository at this point
Copy the full SHA 9c6b880View commit details -
Merge remote-tracking branch 'upstream/master' into refactor-StatsOpt…
…ions Signed-off-by: James Buckland <jbuckland@google.com>
Configuration menu - View commit details
-
Copy full SHA for c1fa6fb - Browse repository at this point
Copy the full SHA c1fa6fbView commit details