summaryrefslogtreecommitdiffstats
path: root/src/mon/MonmapMonitor.cc
diff options
context:
space:
mode:
authorSage Weil <sage@redhat.com>2016-11-22 05:37:31 +0100
committerSage Weil <sage@redhat.com>2016-11-22 05:37:31 +0100
commit61fca96c29104683da74c913cfbf4005ba95cf77 (patch)
treefb949e5731066442cc63071afba371dcf7e2c86e /src/mon/MonmapMonitor.cc
parentMerge pull request #11993 from ceph/wip-17809 (diff)
downloadceph-61fca96c29104683da74c913cfbf4005ba95cf77.tar.xz
ceph-61fca96c29104683da74c913cfbf4005ba95cf77.zip
assert(0) -> ceph_abort()
Signed-off-by: Sage Weil <sage@redhat.com>
Diffstat (limited to 'src/mon/MonmapMonitor.cc')
-rw-r--r--src/mon/MonmapMonitor.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mon/MonmapMonitor.cc b/src/mon/MonmapMonitor.cc
index d0eacb0ab53..c4512dc7dc2 100644
--- a/src/mon/MonmapMonitor.cc
+++ b/src/mon/MonmapMonitor.cc
@@ -183,7 +183,7 @@ bool MonmapMonitor::preprocess_query(MonOpRequestRef op)
case MSG_MON_JOIN:
return preprocess_join(op);
default:
- assert(0);
+ ceph_abort();
return true;
}
}
@@ -311,7 +311,7 @@ bool MonmapMonitor::prepare_update(MonOpRequestRef op)
case MSG_MON_JOIN:
return prepare_join(op);
default:
- assert(0);
+ ceph_abort();
}
return false;