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

Method getDecodingTableCacheSize

src/erasure-code/isa/ErasureCodeIsaTableCache.cc:101–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99// -----------------------------------------------------------------------------
100
101int
102ErasureCodeIsaTableCache::getDecodingTableCacheSize(int matrixtype)
103{
104 std::lock_guard lock{codec_tables_guard};
105 if (decoding_tables[matrixtype])
106 return decoding_tables[matrixtype]->size();
107 else
108 return -1;
109}
110
111// -----------------------------------------------------------------------------
112

Callers 1

TEST_FFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by 1

TEST_FFunction · 0.64