~ubuntu-branches/ubuntu/saucy/db/saucy-proposed

« back to all changes in this revision

Viewing changes to csharp/RepMgrSite.cs

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2010-10-25 22:16:35 UTC
  • mfrom: (13.1.11 sid)
  • Revision ID: james.westby@ubuntu.com-20101025221635-k0o38lxdx9kle3mh
Tags: 5.0.26-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Pass --build/--host to configure to support cross-building, and don't
    override CC.
  - Disable the Java build when cross-building, for now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*-
2
2
 * See the file LICENSE for redistribution information.
3
3
 *
4
 
 * Copyright (c) 2009 Oracle.  All rights reserved.
 
4
 * Copyright (c) 2009, 2010 Oracle and/or its affiliates.  All rights reserved.
5
5
 *
6
6
 */
7
7
using System;
30
30
        /// If true, the site is connected.
31
31
        /// </summary>
32
32
        public bool isConnected;
 
33
        /// <summary>
 
34
        /// If true, the site is client-to-client peer.
 
35
        /// </summary>
 
36
        public bool isPeer;
33
37
 
34
38
        internal RepMgrSite(DB_REPMGR_SITE site) {
35
39
            EId = site.eid;
36
40
            Address = new ReplicationHostAddress(site.host, site.port);
37
41
            isConnected = (site.status == DbConstants.DB_REPMGR_CONNECTED);
 
42
            isPeer = (site.flags & DbConstants.DB_REPMGR_PEER) != 0;
38
43
        }
39
44
    }
40
45
}