mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-15 02:18:39 +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/Knobs.h"
|
||||||
#include "fdbserver/TransactionTagCounter.h"
|
#include "fdbserver/TransactionTagCounter.h"
|
||||||
#include "flow/Trace.h"
|
#include "flow/Trace.h"
|
||||||
|
|
||||||
|
namespace {
|
||||||
|
|
||||||
class TopKTags {
|
class TopKTags {
|
||||||
public:
|
public:
|
||||||
struct TagAndCount {
|
struct TagAndCount {
|
||||||
@ -75,6 +78,8 @@ public:
|
|||||||
void clear() { topTags.clear(); }
|
void clear() { topTags.clear(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} // namespace
|
||||||
|
|
||||||
class TransactionTagCounterImpl {
|
class TransactionTagCounterImpl {
|
||||||
UID thisServerID;
|
UID thisServerID;
|
||||||
TransactionTagMap<int64_t> intervalCounts;
|
TransactionTagMap<int64_t> intervalCounts;
|
||||||
|
@ -18,8 +18,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef FLOW_SAFE_ACCESS_REF_H
|
#ifndef FLOW_OWNING_REOSURCE_H
|
||||||
#define FLOW_SAFE_ACCESS_REF_H
|
#define FLOW_OWNING_REOSURCE_H
|
||||||
|
|
||||||
#include "flow/FastRef.h"
|
#include "flow/FastRef.h"
|
||||||
|
|
||||||
@ -116,4 +116,4 @@ public:
|
|||||||
ResourceWeakRef(const ResourceWeakRef& ref) : details::ResourceRef<T>(ref.resourceRef) {}
|
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