summaryrefslogtreecommitdiff
path: root/src/test/osd/ErasureCodePluginExample.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/osd/ErasureCodePluginExample.cc')
-rw-r--r--src/test/osd/ErasureCodePluginExample.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/osd/ErasureCodePluginExample.cc b/src/test/osd/ErasureCodePluginExample.cc
index 1543b1cdaed..6ae61c0a18d 100644
--- a/src/test/osd/ErasureCodePluginExample.cc
+++ b/src/test/osd/ErasureCodePluginExample.cc
@@ -14,6 +14,8 @@
*
*/
+#include <unistd.h>
+
#include "osd/ErasureCodePlugin.h"
#include "ErasureCodeExample.h"
@@ -22,7 +24,7 @@ public:
virtual int factory(const map<std::string,std::string> &parameters,
ErasureCodeInterfaceRef *erasure_code)
{
- *erasure_code = ErasureCodeInterfaceRef(new ErasureCodeExample(parameters));
+ *erasure_code = ErasureCodeInterfaceRef(new ErasureCodeExample());
return 0;
}
};