MCPcopy
hub / github.com/benbjohnson/litestream / syncToRemote

Method syncToRemote

vfs.go:1892–1896  ·  view source on GitHub ↗

syncToRemote syncs dirty pages to the remote replica. This function acquires f.mu internally.

()

Source from the content-addressed store, hash-verified

1890// syncToRemote syncs dirty pages to the remote replica.
1891// This function acquires f.mu internally.
1892func (f *VFSFile) syncToRemote() error {
1893 f.mu.Lock()
1894 defer f.mu.Unlock()
1895 return f.syncToRemoteWithLock()
1896}
1897
1898// syncToRemoteWithLock syncs dirty pages to the remote replica.
1899// Caller must hold f.mu.

Callers

nothing calls this directly

Calls 3

syncToRemoteWithLockMethod · 0.95
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected