mirror of
https://github.com/apple/foundationdb.git
synced 2025-06-01 02:37:02 +08:00
Fixed formatting
This commit is contained in:
parent
3c75b5d7de
commit
b9b4e1ebe4
@ -75,8 +75,7 @@ struct DcLagWorkload : TestWorkload {
|
||||
std::vector<IPAddress> ips; // all remote process IPs
|
||||
for (const auto& process : g_simulator->getAllProcesses()) {
|
||||
const auto& ip = process->address.ip;
|
||||
if (process->locality.dcId().present() &&
|
||||
process->locality.dcId() == g_simulator->remoteDcId) {
|
||||
if (process->locality.dcId().present() && process->locality.dcId() == g_simulator->remoteDcId) {
|
||||
ips.push_back(ip);
|
||||
}
|
||||
}
|
||||
|
@ -97,8 +97,8 @@ struct GcGenerationsWorkload : TestWorkload {
|
||||
std::vector<IPAddress> remoteIps; // all remote process IPs
|
||||
for (const auto& process : g_simulator->getAllProcesses()) {
|
||||
const auto& ip = process->address.ip;
|
||||
if (process->locality.dcId().present() &&
|
||||
process->locality.dcId() == g_simulator->remoteDcId && !isCoordinator(coordinators, ip)) {
|
||||
if (process->locality.dcId().present() && process->locality.dcId() == g_simulator->remoteDcId &&
|
||||
!isCoordinator(coordinators, ip)) {
|
||||
remoteIps.push_back(ip);
|
||||
} else {
|
||||
ips.push_back(ip);
|
||||
|
@ -259,7 +259,8 @@ private:
|
||||
ASSERT_EQ(metaclusterEntry.tenantState, TenantState::READY);
|
||||
ASSERT(entry.tenantName == metaclusterEntry.tenantName);
|
||||
} else if (entry.tenantName != metaclusterEntry.tenantName) {
|
||||
ASSERT(metaclusterEntry.renameDestination.present() && entry.tenantName == metaclusterEntry.renameDestination.get());
|
||||
ASSERT(metaclusterEntry.renameDestination.present() &&
|
||||
entry.tenantName == metaclusterEntry.renameDestination.get());
|
||||
}
|
||||
if (metaclusterEntry.tenantState != TenantState::UPDATING_CONFIGURATION &&
|
||||
metaclusterEntry.tenantState != TenantState::REMOVING) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user