~raghavendra-prabhu/percona-xtradb-cluster/release-5.5.30-galera-2.x

« back to all changes in this revision

Viewing changes to gcomm/src/view.cpp

  • Committer: Raghavendra D Prabhu
  • Date: 2013-04-12 15:26:34 UTC
  • mfrom: (95.2.24 2.x)
  • Revision ID: raghavendra.prabhu@percona.com-20130412152634-2y2u0swshf5fie2x
Merge lp:galera-2.x upto revision 150.

Following bugs are fixed:

lp:1166065
lp:1164992

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
size_t gcomm::ViewId::unserialize(const gu::byte_t* buf,
14
14
                                  const size_t buflen,
15
15
                                  const size_t offset)
16
 
    throw (gu::Exception)
17
16
{
18
17
    size_t off;
19
18
 
27
26
 
28
27
size_t gcomm::ViewId::serialize(gu::byte_t* buf,
29
28
                                const size_t buflen,
30
 
                                const size_t offset)
31
 
    const throw (gu::Exception)
 
29
                                const size_t offset) const
32
30
{
33
31
    size_t off;
34
32
 
51
49
    case gcomm::V_PRIM:     return "PRIM";
52
50
    default:
53
51
        return "UNKNOWN";
54
 
        // gcomm_throw_fatal << "Invalid type value"; throw;
 
52
        // gcomm_throw_fatal << "Invalid type value";
55
53
    }
56
54
}
57
55
 
156
154
 
157
155
size_t gcomm::View::unserialize(const gu::byte_t* buf, const size_t buflen,
158
156
                                size_t offset)
159
 
    throw (gu::Exception)
160
157
{
161
158
    gu_trace (offset = view_id_.unserialize    (buf, buflen, offset));
162
159
    gu_trace (offset = members_.unserialize    (buf, buflen, offset));
169
166
 
170
167
size_t gcomm::View::serialize(gu::byte_t* buf, const size_t buflen,
171
168
                              size_t offset) const
172
 
    throw (gu::Exception)
173
169
{
174
170
    gu_trace (offset = view_id_.serialize    (buf, buflen, offset));
175
171
    gu_trace (offset = members_.serialize    (buf, buflen, offset));