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

Method factory

src/test/compressor/compressor_plugin_example.cc:32–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 {}
31
32 int factory(CompressorRef *cs,
33 ostream *ss) override
34 {
35 if (compressor == 0) {
36 CompressorExample *interface = new CompressorExample();
37 compressor = CompressorRef(interface);
38 }
39 *cs = compressor;
40 return 0;
41 }
42};
43
44// -----------------------------------------------------------------------------

Callers 4

ec_initFunction · 0.45
setup_ec_poolMethod · 0.45
selectMethod · 0.45
TESTFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected