Loading src/backends/cluster.cpp +3 −6 Original line number Diff line number Diff line Loading @@ -163,12 +163,9 @@ namespace authdb { ClusterBackend::ClusterBackend(const char *domain, size_t version, const char *filepath) : _Domain(domain), _Pos(0), _Dirty(false) { // Try to fetch existing data from cluster/store (retry a few times on startup) for (int attempt = 0; attempt < 3 && _Buffer.empty(); ++attempt) { if (attempt > 0) std::this_thread::sleep_for(std::chrono::seconds(attempt)); // Try to fetch existing data from cluster (single attempt, non-blocking). // If peers aren't reachable yet, lock() will fetch on first use. fetchFromCluster(); } if (_Buffer.empty()) { // Initialize with a fresh header locally. Loading Loading
src/backends/cluster.cpp +3 −6 Original line number Diff line number Diff line Loading @@ -163,12 +163,9 @@ namespace authdb { ClusterBackend::ClusterBackend(const char *domain, size_t version, const char *filepath) : _Domain(domain), _Pos(0), _Dirty(false) { // Try to fetch existing data from cluster/store (retry a few times on startup) for (int attempt = 0; attempt < 3 && _Buffer.empty(); ++attempt) { if (attempt > 0) std::this_thread::sleep_for(std::chrono::seconds(attempt)); // Try to fetch existing data from cluster (single attempt, non-blocking). // If peers aren't reachable yet, lock() will fetch on first use. fetchFromCluster(); } if (_Buffer.empty()) { // Initialize with a fresh header locally. Loading