summaryrefslogtreecommitdiffstats
path: root/src/crush/crush.c
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2008-10-13 22:32:03 +0200
committerSage Weil <sage@newdream.net>2008-10-13 22:32:03 +0200
commit8ba36cd8c85cbd5c7b6e178dbd59d371cc3c4697 (patch)
treebabf455aa14a599147266f0c9942ce9eecda6986 /src/crush/crush.c
parentobjecter: ping laggy osds (diff)
downloadceph-8ba36cd8c85cbd5c7b6e178dbd59d371cc3c4697.tar.xz
ceph-8ba36cd8c85cbd5c7b6e178dbd59d371cc3c4697.zip
custom assertion handler
Print assertion error to log file, if it is open.
Diffstat (limited to 'src/crush/crush.c')
-rw-r--r--src/crush/crush.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/crush/crush.c b/src/crush/crush.c
index 26ec8530f2a..4e630b0c80d 100644
--- a/src/crush/crush.c
+++ b/src/crush/crush.c
@@ -4,6 +4,7 @@
# define free(x) kfree(x)
#else
# include <stdlib.h>
+# include <assert.h>
#endif
#include "crush.h"