Commit 7a13d0ee authored by jan.koester's avatar jan.koester
Browse files

test

parent 7344e187
Loading
Loading
Loading
Loading
Loading
+3 −0
Changes for src/authdb.cpp: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -289,6 +289,8 @@ namespace authdb {
                    return;
                }

                {
                    AuthBackendLock admlock(_AdminBackend);
                    try {
                        apidb=db.data(did.value);
                    }catch(std::exception &e){
@@ -305,6 +307,7 @@ namespace authdb {
                        rep.send(curreq,msg,sizeof(msg));
                        return;
                    }
                }

                if(apidb){
                    apidb->lock();
+3 −0
Changes for src/backends/cluster.cpp: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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();