mirror of
https://github.com/privacore/open-source-search-engine.git
synced 2025-07-16 02:46:08 -04:00
Removed write-only Host::m_inSync
This commit is contained in:
3
Hostdb.h
3
Hostdb.h
@ -202,9 +202,6 @@ public:
|
||||
// is from when making the UdpSlot key.
|
||||
class Hostdb *m_hostdb;
|
||||
|
||||
// Syncdb.cpp uses these
|
||||
bool m_inSync ;
|
||||
|
||||
// . used by Parms.cpp for broadcasting parm change requests
|
||||
// . each parm change request has an id
|
||||
// . this let's us know which id is in progress and what the last
|
||||
|
@ -1334,9 +1334,6 @@ void updatePingTime ( Host *h , int32_t *pingPtr , int32_t tripTime ) {
|
||||
// is it dead now?
|
||||
bool isDead = g_hostdb.isDead ( h );
|
||||
|
||||
// force it out of sync
|
||||
if ( isDead ) h->m_inSync = false;
|
||||
|
||||
if( ! h->m_isProxy ) {
|
||||
// maintain m_numHostsAlive if there was a change in state
|
||||
if ( wasDead && ! isDead ) g_hostdb.m_numHostsAlive++;
|
||||
|
Reference in New Issue
Block a user