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

Method Flush

posting/writer.go:105–108  ·  view source on GitHub ↗

Flush waits until all operations are done and all data is written to disk.

()

Source from the content-addressed store, hash-verified

103
104// Flush waits until all operations are done and all data is written to disk.
105func (w *TxnWriter) Flush() error {
106 // No need to call Sync here.
107 return w.Wait()
108}
109
110func (w *TxnWriter) Wait() error {
111 w.wg.Wait()

Callers 15

waitMethod · 0.95
writeMethod · 0.95
writePostingListToDiskFunction · 0.95
TestGetScalarListFunction · 0.95
TestMultipleTxnListCountFunction · 0.95
TestScalarPredicateCountFunction · 0.95
TestSingleUidReplacementFunction · 0.95
TestSingleStringFunction · 0.95
TestLangExactFunction · 0.95

Calls 1

WaitMethod · 0.95

Tested by 15

writePostingListToDiskFunction · 0.76
TestGetScalarListFunction · 0.76
TestMultipleTxnListCountFunction · 0.76
TestScalarPredicateCountFunction · 0.76
TestSingleUidReplacementFunction · 0.76
TestSingleStringFunction · 0.76
TestLangExactFunction · 0.76
commitTransactionFunction · 0.76