@@ -69,15 +69,15 @@ std::unique_ptr<LocalCacheSettings> Settings::CopyCacheSettings(
69
69
UNREACHABLE ();
70
70
}
71
71
72
- std::unique_ptr<MemoryGargabeCollectorSettings >
72
+ std::unique_ptr<MemoryGarbageCollectorSettings >
73
73
MemoryCacheSettings::CopyMemoryGcSettings (
74
- const MemoryGargabeCollectorSettings & settings) {
74
+ const MemoryGarbageCollectorSettings & settings) {
75
75
if (settings.kind () ==
76
- MemoryGargabeCollectorSettings ::MemoryGcKind::kEagerGc ) {
76
+ MemoryGarbageCollectorSettings ::MemoryGcKind::kEagerGc ) {
77
77
return absl::make_unique<MemoryEagerGcSettings>(
78
78
static_cast <const MemoryEagerGcSettings&>(settings));
79
79
} else if (settings.kind () ==
80
- MemoryGargabeCollectorSettings ::MemoryGcKind::kLruGc ) {
80
+ MemoryGarbageCollectorSettings ::MemoryGcKind::kLruGc ) {
81
81
return absl::make_unique<MemoryLruGcSettings>(
82
82
static_cast <const MemoryLruGcSettings&>(settings));
83
83
}
@@ -107,7 +107,7 @@ MemoryLruGcSettings MemoryLruGcSettings::WithSizeBytes(int64_t size) const {
107
107
}
108
108
109
109
MemoryCacheSettings MemoryCacheSettings::WithMemoryGarbageCollectorSettings (
110
- const MemoryGargabeCollectorSettings & settings) {
110
+ const MemoryGarbageCollectorSettings & settings) {
111
111
MemoryCacheSettings new_settings (*this );
112
112
new_settings.settings_ = CopyMemoryGcSettings (settings);
113
113
return new_settings;
@@ -157,18 +157,18 @@ bool operator==(const LocalCacheSettings& lhs, const LocalCacheSettings& rhs) {
157
157
UNREACHABLE ();
158
158
}
159
159
160
- bool operator ==(const MemoryGargabeCollectorSettings & lhs,
161
- const MemoryGargabeCollectorSettings & rhs) {
160
+ bool operator ==(const MemoryGarbageCollectorSettings & lhs,
161
+ const MemoryGarbageCollectorSettings & rhs) {
162
162
if (lhs.kind () != rhs.kind ()) {
163
163
return false ;
164
164
}
165
165
166
- if (lhs.kind () == MemoryGargabeCollectorSettings ::MemoryGcKind::kEagerGc ) {
166
+ if (lhs.kind () == MemoryGarbageCollectorSettings ::MemoryGcKind::kEagerGc ) {
167
167
return static_cast <const MemoryEagerGcSettings&>(lhs) ==
168
168
static_cast <const MemoryEagerGcSettings&>(rhs);
169
169
}
170
170
171
- if (lhs.kind () == MemoryGargabeCollectorSettings ::MemoryGcKind::kLruGc ) {
171
+ if (lhs.kind () == MemoryGarbageCollectorSettings ::MemoryGcKind::kLruGc ) {
172
172
return static_cast <const MemoryLruGcSettings&>(lhs) ==
173
173
static_cast <const MemoryLruGcSettings&>(rhs);
174
174
}
@@ -268,7 +268,7 @@ int64_t Settings::cache_size_bytes() const {
268
268
auto * memory_cache_settings =
269
269
static_cast <MemoryCacheSettings*>(cache_settings_.get ());
270
270
if (memory_cache_settings->gc_settings ().kind () ==
271
- MemoryGargabeCollectorSettings ::MemoryGcKind::kLruGc ) {
271
+ MemoryGarbageCollectorSettings ::MemoryGcKind::kLruGc ) {
272
272
return static_cast <const MemoryLruGcSettings&>(
273
273
memory_cache_settings->gc_settings ())
274
274
.size_bytes ();
@@ -289,7 +289,7 @@ bool Settings::gc_enabled() const {
289
289
auto * memory_cache_settings =
290
290
static_cast <MemoryCacheSettings*>(cache_settings_.get ());
291
291
return memory_cache_settings->gc_settings ().kind () ==
292
- MemoryGargabeCollectorSettings ::MemoryGcKind::kLruGc &&
292
+ MemoryGarbageCollectorSettings ::MemoryGcKind::kLruGc &&
293
293
static_cast <const MemoryLruGcSettings&>(
294
294
memory_cache_settings->gc_settings ())
295
295
.size_bytes () != CacheSizeUnlimited;
0 commit comments