Skip to main content

init_network

Function init_network 

Source
pub fn init_network()
Expand description

Initialize the FoundationDB network.

This function is safe to call multiple times - only the first call will actually initialize the network, subsequent calls return immediately.

After calling shutdown_network(), any subsequent calls to this function will panic.

The user is required to call shutdown_network() before the process exits to ensure a clean shutdown of the FoundationDB network. Otherwise, strange memory corruption issues during shutdown may occur. This is a limitation of the FoundationDB C API.