Loading src/authdb.cpp +3 −0 Changes for src/authdb.cpp: 3 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -289,6 +289,8 @@ namespace authdb { return; } { AuthBackendLock admlock(_AdminBackend); try { apidb=db.data(did.value); }catch(std::exception &e){ Loading @@ -305,6 +307,7 @@ namespace authdb { rep.send(curreq,msg,sizeof(msg)); return; } } if(apidb){ apidb->lock(); Loading src/backends/cluster.cpp +3 −0 Changes for src/backends/cluster.cpp: 3 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -161,6 +161,9 @@ namespace authdb { ClusterBackend::ClusterBackend(const char *domain, size_t version, const char *filepath) : _Domain(domain), _Pos(0), _Dirty(false) { // Give peer servers time to start their event loops std::this_thread::sleep_for(std::chrono::seconds(2)); // Try to fetch existing data from cluster/store fetchFromCluster(); Loading Loading
src/authdb.cpp +3 −0 Changes for src/authdb.cpp: 3 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -289,6 +289,8 @@ namespace authdb { return; } { AuthBackendLock admlock(_AdminBackend); try { apidb=db.data(did.value); }catch(std::exception &e){ Loading @@ -305,6 +307,7 @@ namespace authdb { rep.send(curreq,msg,sizeof(msg)); return; } } if(apidb){ apidb->lock(); Loading
src/backends/cluster.cpp +3 −0 Changes for src/backends/cluster.cpp: 3 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -161,6 +161,9 @@ namespace authdb { ClusterBackend::ClusterBackend(const char *domain, size_t version, const char *filepath) : _Domain(domain), _Pos(0), _Dirty(false) { // Give peer servers time to start their event loops std::this_thread::sleep_for(std::chrono::seconds(2)); // Try to fetch existing data from cluster/store fetchFromCluster(); Loading