Skip to content

Commit 94e4e30

Browse files
committed
Resolve comments
1 parent 6b782c1 commit 94e4e30

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

fdbclient/GlobalConfig.actor.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,6 @@ void GlobalConfig::erase(KeyRangeRef range) {
153153
}
154154
}
155155

156-
// Updates local copy of global configuration by reading the entire key-range
157-
// from storage (proxied through the GrvProxies). Returns the version of the
158-
// refreshed data.
159156
ACTOR Future<Version> GlobalConfig::refresh(GlobalConfig* self, Version lastKnown, Version largestSeen) {
160157
// TraceEvent trace(SevInfo, "GlobalConfigRefresh");
161158
self->erase(KeyRangeRef(""_sr, "\xff"_sr));
@@ -233,7 +230,7 @@ ACTOR Future<Void> GlobalConfig::updater(GlobalConfig* self, const ClientDBInfo*
233230
} else if (mutation.type == MutationRef::ClearRange) {
234231
self->erase(KeyRangeRef(mutation.param1, mutation.param2));
235232
} else {
236-
ASSERT(false);
233+
UNREACHABLE();
237234
}
238235
}
239236

fdbclient/include/fdbclient/GlobalConfig.actor.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ class GlobalConfig : NonCopyable {
163163
// of the global configuration keyspace.
164164
void erase(KeyRangeRef range);
165165

166+
// Updates local copy of global configuration by reading the entire key-range
167+
// from storage (proxied through the GrvProxies). Returns the version of the
168+
// refreshed data.
166169
ACTOR static Future<Version> refresh(GlobalConfig* self, Version lastKnown, Version largestSeen);
167170
ACTOR static Future<Void> updater(GlobalConfig* self, const ClientDBInfo* dbInfo);
168171

0 commit comments

Comments
 (0)