~ubuntu-branches/ubuntu/quantal/ceph/quantal

« back to all changes in this revision

Viewing changes to src/mds/LogEvent.cc

  • Committer: Bazaar Package Importer
  • Author(s): Clint Byrum, Clint Byrum, Micah Gersten
  • Date: 2011-02-12 22:50:26 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110212225026-yyyw4tk0msgql3ul
Tags: 0.24.2-0ubuntu1
[ Clint Byrum <clint@ubuntu.com> ]
* New upstream release. (LP: #658670, LP: #684011)
* debian/patches/fix-mkcephfs.patch: dropped (applied upstream)
* Removed .la files from libceph1-dev, libcrush1-dev and 
  librados1-dev (per Debian policy v3.9.1 10.2).
* debian/control: adding pkg-config as a build dependency
* debian/control: depend on libcrypto++-dev instead of libssl-dev
* debian/watch: added watch file

[ Micah Gersten <micahg@ubuntu.com> ]
* debian/control: add Homepage

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
  int length = bl.length() - p.get_off();
49
49
  generic_dout(15) << "decode_log_event type " << type << ", size " << length << dendl;
50
50
  
51
 
  assert(type > 0);
52
 
  
53
51
  // create event
54
52
  LogEvent *le;
55
53
  switch (type) {
73
71
  case EVENT_TABLESERVER: le = new ETableServer; break;
74
72
 
75
73
  default:
76
 
    generic_dout(1) << "uh oh, unknown log event type " << type << dendl;
77
 
    assert(0);
 
74
    generic_dout(0) << "uh oh, unknown log event type " << type << " length " << length << dendl;
 
75
    return NULL;
78
76
  }
79
77
 
80
78
  // decode
81
 
  le->decode(p);
 
79
  try {
 
80
    le->decode(p);
 
81
  }
 
82
  catch (const buffer::error &e) {
 
83
    generic_dout(0) << "failed to decode LogEvent type " << type << dendl;
 
84
    delete le;
 
85
    return NULL;
 
86
  }
 
87
 
82
88
  assert(p.end());
83
 
  
84
89
  return le;
85
90
}
86
91