MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / setIndexCacheSize

Method setIndexCacheSize

source/core/StarBTreeDatabase.cpp:70–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void BTreeDatabase::setIndexCacheSize(uint32_t indexCacheSize) {
71 SpinLocker lock(m_indexCacheSpinLock);
72 m_indexCache.setMaxSize(indexCacheSize);
73}
74
75bool BTreeDatabase::autoCommit() const {
76 ReadLocker readLocker(m_lock);

Callers 1

testBTreeDatabaseFunction · 0.80

Calls 1

setMaxSizeMethod · 0.45

Tested by 1

testBTreeDatabaseFunction · 0.64