~raghavendra-prabhu/percona-xtradb-cluster/galera-bug1153727

« back to all changes in this revision

Viewing changes to gcomm/src/gmcast_message.hpp

  • 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:
204
204
 
205
205
    size_t serialize(gu::byte_t* buf, const size_t buflen,
206
206
                     const size_t offset) const
207
 
        throw (gu::Exception)
208
207
    {
209
208
        size_t off;
210
209
 
237
236
    }
238
237
 
239
238
    size_t read_v0(const gu::byte_t* buf, const size_t buflen, const size_t offset)
240
 
        throw (gu::Exception)
241
239
    {
242
240
        size_t off;
243
241
        gu::byte_t t;
256
254
        default:
257
255
            gu_throw_error(EINVAL) << "invalid message type "
258
256
                                   << static_cast<int>(type_);
259
 
            throw;
260
257
        }
261
258
        gu_trace (off = gu::unserialize1(buf, buflen, off, flags_));
262
259
        gu_trace (off = gu::unserialize1(buf, buflen, off, segment_id_));
286
283
    }
287
284
 
288
285
    size_t unserialize(const gu::byte_t* buf, const size_t buflen, const size_t offset)
289
 
        throw (gu::Exception)
290
286
    {
291
287
        size_t off;
292
288
 
297
293
            gu_trace (return read_v0(buf, buflen, off));
298
294
        default:
299
295
            gu_throw_error(EPROTONOSUPPORT) << "Unsupported/unrecognized gmcast protocol version: " << version_;
300
 
            throw;
301
296
        }
302
297
    }
303
298