mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-14 01:42:37 +08:00
fixup! Fix minor issues
* Reintroduce the anonymous namespace deleted by accident * Rename the guardian definition in OwningResource.h
This commit is contained in:
parent
bc9d2e8cbe
commit
2ce456bd3f
@ -21,6 +21,9 @@
|
||||
#include "fdbserver/Knobs.h"
|
||||
#include "fdbserver/TransactionTagCounter.h"
|
||||
#include "flow/Trace.h"
|
||||
|
||||
namespace {
|
||||
|
||||
class TopKTags {
|
||||
public:
|
||||
struct TagAndCount {
|
||||
@ -75,6 +78,8 @@ public:
|
||||
void clear() { topTags.clear(); }
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
class TransactionTagCounterImpl {
|
||||
UID thisServerID;
|
||||
TransactionTagMap<int64_t> intervalCounts;
|
||||
|
@ -18,8 +18,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef FLOW_SAFE_ACCESS_REF_H
|
||||
#define FLOW_SAFE_ACCESS_REF_H
|
||||
#ifndef FLOW_OWNING_REOSURCE_H
|
||||
#define FLOW_OWNING_REOSURCE_H
|
||||
|
||||
#include "flow/FastRef.h"
|
||||
|
||||
@ -116,4 +116,4 @@ public:
|
||||
ResourceWeakRef(const ResourceWeakRef& ref) : details::ResourceRef<T>(ref.resourceRef) {}
|
||||
};
|
||||
|
||||
#endif // FLOW_SAFE_ACCESS_REF_H
|
||||
#endif // FLOW_OWNING_REOSURCE_H
|
Loading…
x
Reference in New Issue
Block a user