]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd_replay: assert(false)->ceph_abort()
authorLi Wang <laurence.liwang@gmail.com>
Sat, 30 Sep 2017 02:35:31 +0000 (02:35 +0000)
committerLi Wang <laurence.liwang@gmail.com>
Mon, 2 Oct 2017 14:43:17 +0000 (14:43 +0000)
Signed-off-by: Li Wang <laurence.liwang@gmail.com>
src/rbd_replay/ActionTypes.cc

index eed19fcec1ae370e71a19c36587cf9ad4d93bdc7..6b0d584caab45dd7d5a3f228832ee0a1df436bf2 100644 (file)
@@ -30,7 +30,7 @@ void decode_big_endian_string(std::string &str, bufferlist::iterator &it) {
   str.clear();
   it.copy(length, str);
 #else
-  assert(false);
+  ceph_abort();
 #endif
 }
 
@@ -245,7 +245,7 @@ void AioOpenImageAction::dump(Formatter *f) const {
 }
 
 void UnknownAction::encode(bufferlist &bl) const {
-  assert(false);
+  ceph_abort();
 }
 
 void UnknownAction::decode(__u8 version, bufferlist::iterator &it) {