MCPcopy Create free account
hub / github.com/ceph/ceph / initialize

Method initialize

src/test/erasure-code/TestErasureCodePlugins.cc:44–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 return profile["plugin"];
43 }
44 void initialize() {
45 EXPECT_FALSE(erasure_code);
46 EXPECT_EQ(0, instance.factory(get_plugin(),
47 g_conf().get_val<std::string>("erasure_code_dir"),
48 profile,
49 &erasure_code,
50 &cerr));
51 EXPECT_TRUE(erasure_code.get());
52 chunk_size = erasure_code->get_chunk_size(get_k()*4096);
53 }
54 unsigned int get_k()
55 {
56 return erasure_code->get_data_chunk_count();

Callers

nothing calls this directly

Calls 3

factoryMethod · 0.45
getMethod · 0.45
get_chunk_sizeMethod · 0.45

Tested by

no test coverage detected