Commit 612cbe60 authored by jan.koester's avatar jan.koester
Browse files

test

parent f378e380
Loading
Loading
Loading
Loading
Loading
+12 −0
Changes for src/cluster.cpp: 12 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -980,6 +980,18 @@ namespace authdb {

        std::set<uint64_t> all_groups;
        try {
            size_t n = session_read_client_->get_cluster_status().nodes_total;
            std::cerr << "[SESSIONS-DIAG] listAllSessions: nodes_total=" << n << std::endl;
            for (size_t i = 0; i < n; i++) {
                std::vector<uint64_t> node_groups;
                bool ok = session_read_client_->list_groups_on_node(i, node_groups);
                std::cerr << "[SESSIONS-DIAG] list_groups_on_node(" << i << ") ok=" << ok
                          << " groups=" << node_groups.size() << std::endl;
                if (ok) {
                    all_groups.insert(node_groups.begin(), node_groups.end());
                }
            }
            std::cerr << "[SESSIONS-DIAG] all_groups (union) size=" << all_groups.size() << std::endl;

            // Try to retrieve and deserialize each group as a session
            for (uint64_t gid : all_groups) {