MCPcopy Create free account
hub / github.com/cockroachdb/cockroach-go / StoreOnDiskOpt

Function StoreOnDiskOpt

testserver/testserver.go:275–279  ·  view source on GitHub ↗

StoreOnDiskOpt is a TestServer option that can be passed to NewTestServer to enable storing database in memory.

()

Source from the content-addressed store, hash-verified

273// StoreOnDiskOpt is a TestServer option that can be passed to NewTestServer
274// to enable storing database in memory.
275func StoreOnDiskOpt() TestServerOpt {
276 return func(args *testServerArgs) {
277 args.storeOnDisk = true
278 }
279}
280
281// SetStoreMemSizeOpt is a TestServer option that can be passed to NewTestServer
282// to set the proportion of available memory that is allocated

Callers 4

TestRunServerFunction · 0.92
newTenantDBForTestFunction · 0.92
testRestartNodeFunction · 0.92
TestUpgradeNodeFunction · 0.92

Calls

no outgoing calls

Tested by 4

TestRunServerFunction · 0.74
newTenantDBForTestFunction · 0.74
testRestartNodeFunction · 0.74
TestUpgradeNodeFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…