Exemplo n.º 1
0
 internal ReplicationStats(Internal.ReplicationStatStruct stats)
 {
     st      = stats;
     next    = new LSN(st.st_next_lsn.file, st.st_next_lsn.offset);
     waiting = new LSN(st.st_waiting_lsn.file, st.st_waiting_lsn.offset);
     maxPerm =
         new LSN(st.st_max_perm_lsn.file, st.st_max_perm_lsn.offset);
     winner = new LSN(st.st_election_lsn.file, st.st_election_lsn.offset);
 }
Exemplo n.º 2
0
        internal ReplicationStats(Internal.ReplicationStatStruct stats) {
            st = stats;
            next = new LSN(st.st_next_lsn.file, st.st_next_lsn.offset);
            waiting = new LSN(st.st_waiting_lsn.file, st.st_waiting_lsn.offset);
            maxPerm =
                new LSN(st.st_max_perm_lsn.file, st.st_max_perm_lsn.offset);
            winner = new LSN(st.st_election_lsn.file, st.st_election_lsn.offset);

        }
Exemplo n.º 3
0
        internal ReplicationStatStruct rep_stat(uint flags)
        {
            int    err = 0;
            IntPtr ptr = rep_stat(flags, ref err);

            DatabaseException.ThrowException(err);
            ReplicationStatStruct ret = (ReplicationStatStruct)Marshal.PtrToStructure(ptr, typeof(ReplicationStatStruct));

            libdb_csharp.__os_ufree(null, ptr);
            return(ret);
        }