summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@yahoo-inc.com>2017-05-29 09:05:46 +0000
committerTor Egge <Tor.Egge@yahoo-inc.com>2017-05-29 09:08:50 +0000
commit0c4adb25a219b22b08785675be506c97336f0571 (patch)
tree85398ba0c93081bb4e19ac468f19e8750cfeee85 /searchcore
parent61e613620a5934273cd069b4d46635757feba8bc (diff)
Log extra debug messages when reconfiguring proton.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/server/proton_config_fetcher.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/server/proton_config_fetcher.cpp b/searchcore/src/vespa/searchcore/proton/server/proton_config_fetcher.cpp
index 0e28bc08d55..b5d76c3f60a 100644
--- a/searchcore/src/vespa/searchcore/proton/server/proton_config_fetcher.cpp
+++ b/searchcore/src/vespa/searchcore/proton/server/proton_config_fetcher.cpp
@@ -87,17 +87,21 @@ ProtonConfigFetcher::updateDocumentDBConfigs(const BootstrapConfig::SP & bootstr
void
ProtonConfigFetcher::reconfigure()
{
+ auto bootstrapConfig = _bootstrapConfigManager.getConfig();
+ int64_t generation = bootstrapConfig->getGeneration();
std::map<DocTypeName, DocumentDBConfig::SP> dbConfigs;
{
lock_guard guard(_mutex);
for (auto &kv : _dbManagerMap) {
auto insres = dbConfigs.insert(std::make_pair(kv.first, kv.second->getConfig()));
assert(insres.second);
+ assert(insres.first->second->getGeneration() == generation);
}
}
- auto bootstrapConfig = _bootstrapConfigManager.getConfig();
auto configSnapshot = std::make_shared<ProtonConfigSnapshot>(std::move(bootstrapConfig), std::move(dbConfigs));
+ LOG(debug, "Reconfiguring proton with gen %" PRId64, generation);
_owner.reconfigure(std::move(configSnapshot));
+ LOG(debug, "Reconfigured proton with gen %" PRId64, generation);
}
void