]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
assert: leave cruft off top of assert failure backtrace
authorSage Weil <sage@newdream.net>
Tue, 22 Dec 2009 00:28:27 +0000 (16:28 -0800)
committerSage Weil <sage@newdream.net>
Tue, 22 Dec 2009 00:28:27 +0000 (16:28 -0800)
no more
 1: (__ceph_assert_fail(char const*, char const*, int, char const*)+0x34) [0x7ea7ea]

src/common/assert.cc

index e6c7d214dc940b41cb525c59575e0e2a8efd63a9..e8fcc7de5f6295301a5704a783b13cbc5d0dd105 100644 (file)
@@ -8,7 +8,7 @@
 
 void __ceph_assert_fail(const char *assertion, const char *file, int line, const char *func)
 {
-  BackTrace *bt = new BackTrace(1);
+  BackTrace *bt = new BackTrace(2);
 
   _dout_lock.TryLock();
   *_dout << file << ": In function '" << func << "':" << std::endl;