MCPcopy
hub / github.com/NVIDIA/aistore / CommitUpdate

Method CommitUpdate

cmn/gco.go:87–90  ·  view source on GitHub ↗

CommitUpdate finalizes config update and notifies listeners. NOTE: `ais` package must use config-owner to modify config.

(config *Config)

Source from the content-addressed store, hash-verified

85// CommitUpdate finalizes config update and notifies listeners.
86// NOTE: `ais` package must use config-owner to modify config.
87func (gco *globalConfigOwner) CommitUpdate(config *Config) {
88 gco.c.Store(unsafe.Pointer(config))
89 gco.mtx.Unlock()
90}
91
92// DiscardUpdate discards commit updates.
93// NOTE: `ais` package must use config-owner to modify config

Callers 15

TestMainFunction · 0.80
Test_CompressedOneFunction · 0.80
streamWriteUntilFunction · 0.80
testBundleFunction · 0.80
TestConfigTestEnvFunction · 0.80
TestConfigFSPathsFunction · 0.80
setupMethod · 0.80
dsort_test.goFile · 0.80
space_test.goFile · 0.80

Calls 2

UnlockMethod · 0.65
StoreMethod · 0.45

Tested by 15

TestMainFunction · 0.64
Test_CompressedOneFunction · 0.64
streamWriteUntilFunction · 0.64
testBundleFunction · 0.64
TestConfigTestEnvFunction · 0.64
TestConfigFSPathsFunction · 0.64
setupMethod · 0.64
initConfigFunction · 0.64
initFunction · 0.64
initMountpathsFunction · 0.64
updateTestConfigFunction · 0.64