fixup! Fix minor issues

* Reintroduce the anonymous namespace deleted by accident
 * Rename the guardian definition in OwningResource.h
This commit is contained in:
Xiaoge Su 2022-07-05 13:01:06 -07:00
parent bc9d2e8cbe
commit 2ce456bd3f
2 changed files with 8 additions and 3 deletions

View File

@ -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;

View File

@ -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