MCPcopy Create free account
hub / github.com/dgraph-io/dgraph-benchmarks / Write

Method Write

finder/entity.go:62–69  ·  view source on GitHub ↗
(buf []byte)

Source from the content-addressed store, hash-verified

60}
61
62func (sw *SyncWriter) Write(buf []byte) {
63 sw.Lock()
64 defer sw.Unlock()
65 _, err := sw.wr.Write(buf)
66 if err != nil {
67 glog.WithError(err).Fatal("Unable to write to writer.")
68 }
69}
70
71func findAndWrite(idx int, tr trie.Trie, ch chan string,
72 sw *SyncWriter, wg *sync.WaitGroup) {

Callers 15

testQueryFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
readLineFunction · 0.80
mainFunction · 0.80
writeValFunction · 0.80
writeOutFunction · 0.80
readLineFunction · 0.80
convertTypesFunction · 0.80
packBlockMethod · 0.80
DecodeToBufferFunction · 0.80
findAndWriteFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected