MCPcopy
hub / github.com/dgraph-io/dgraph / flush

Method flush

x/log_writer.go:166–173  ·  view source on GitHub ↗

LogWriter should be locked while calling this

()

Source from the content-addressed store, hash-verified

164
165// LogWriter should be locked while calling this
166func (l *LogWriter) flush() {
167 if l == nil {
168 return
169 }
170
171 _ = l.writer.Flush()
172 _ = l.file.Sync()
173}
174
175func encrypt(key, iv, src []byte) ([]byte, error) {
176 ivCopy := make([]byte, 16)

Callers 3

CloseMethod · 0.95
flushPeriodicMethod · 0.95
rotateMethod · 0.95

Calls 2

FlushMethod · 0.65
SyncMethod · 0.65

Tested by

no test coverage detected