From 93c542e99c97233db2ecf2d48ad5c1961614e89d Mon Sep 17 00:00:00 2001 From: Sreenath Bodagala Date: Fri, 30 Aug 2024 22:22:44 +0000 Subject: [PATCH] - Address a bug related to computing the ids of log servers --- fdbserver/TagPartitionedLogSystem.actor.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fdbserver/TagPartitionedLogSystem.actor.cpp b/fdbserver/TagPartitionedLogSystem.actor.cpp index 0b84c039d3f..e57fda3d0a1 100644 --- a/fdbserver/TagPartitionedLogSystem.actor.cpp +++ b/fdbserver/TagPartitionedLogSystem.actor.cpp @@ -2104,12 +2104,15 @@ void getTLogLocIds(std::vector>& tLogs, } for (uint16_t i = 0; i < it->logServers.size(); i++) { if (it->logServers[i]->get().present()) { - interfLocMap[it->logServers[i]->get().interf().id()] = location++; + interfLocMap[it->logServers[i]->get().interf().id()] = location; } - maxTLogLocId++; + location++; } } + // Set maxTLogLocId. + maxTLogLocId = location; + // Find the locations of tLogs in "logGroupResults". uint8_t logGroupId = 0; for (auto& logGroupResult : logGroupResults) {