mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
Some Web readers adjustemnts
* do not init shared URLs before needed * do not load info objects when DB is unavailable * adjust reader flags when DB is down * airport URL available in setup
This commit is contained in:
@@ -47,6 +47,13 @@ namespace BlackCore
|
||||
return static_cast<CDbFlags::DataRetrievalMode>(this->m_retrievalFlags);
|
||||
}
|
||||
|
||||
void CDatabaseReaderConfig::markAsDbDown()
|
||||
{
|
||||
CDbFlags::DataRetrievalMode m = this->getRetrievalMode();
|
||||
m = CDbFlags::adjustWhenDbIsDown(m);
|
||||
this->m_retrievalFlags = static_cast<int>(m);
|
||||
}
|
||||
|
||||
void CDatabaseReaderConfig::setCacheLifetime(const CTime &time)
|
||||
{
|
||||
this->m_cacheLifetime = time;
|
||||
@@ -86,6 +93,14 @@ namespace BlackCore
|
||||
return CDatabaseReaderConfig(); // not found
|
||||
}
|
||||
|
||||
void CDatabaseReaderConfigList::markAsDbDown()
|
||||
{
|
||||
for (CDatabaseReaderConfig &config : *this)
|
||||
{
|
||||
config.markAsDbDown();
|
||||
}
|
||||
}
|
||||
|
||||
void CDatabaseReaderConfigList::setCacheLifetimes(const CTime &time)
|
||||
{
|
||||
for (CDatabaseReaderConfig &config : *this)
|
||||
|
||||
Reference in New Issue
Block a user