]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
erasure-code: init function is extern "C" 2410/head
authorLoic Dachary <loic-201408@dachary.org>
Sat, 6 Sep 2014 00:55:15 +0000 (02:55 +0200)
committerLoic Dachary <loic-201408@dachary.org>
Sat, 6 Sep 2014 00:55:15 +0000 (02:55 +0200)
Otherwise it is not found and the real cause obscured by the test
setup. The thread returns immediately and the timeout test sometime
fails.

http://tracker.ceph.com/issues/9368 Fixes: #9368

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
src/test/erasure-code/ErasureCodePluginHangs.cc

index 66db8e5cd39bf09e14271799cde128b05679df8d..55b9e5a4a80d456e6333c8b92753ea22170a952b 100644 (file)
@@ -20,7 +20,7 @@
 
 extern "C" const char *__erasure_code_version() { return CEPH_GIT_NICE_VER; }
 
-int __erasure_code_init(char *plugin_name, char *directory)
+extern "C" int __erasure_code_init(char *plugin_name, char *directory)
 {
   sleep(1000);
   return 0;