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

Function writePostingListToDisk

posting/list_test.go:1199–1207  ·  view source on GitHub ↗
(kvs []*bpb.KV)

Source from the content-addressed store, hash-verified

1197}
1198
1199func writePostingListToDisk(kvs []*bpb.KV) error {
1200 writer := NewTxnWriter(pstore)
1201 for _, kv := range kvs {
1202 if err := writer.SetAt(kv.Key, kv.Value, kv.UserMeta[0], kv.Version); err != nil {
1203 return err
1204 }
1205 }
1206 return writer.Flush()
1207}
1208
1209// Create a multi-part list and verify all the uids are there.
1210func TestMultiPartListBasic(t *testing.T) {

Callers 12

TestReadSingleValueFunction · 0.70
TestRollupMaxTsIsSetFunction · 0.70
TestMillionFunction · 0.70
createMultiPartListFunction · 0.70
TestLargePlistSplitFunction · 0.70
TestBinSplitFunction · 0.70
TestMultiPartListMarshalFunction · 0.70
TestSplitLengthFunction · 0.70
TestRecursiveSplitsFunction · 0.70

Calls 3

SetAtMethod · 0.95
FlushMethod · 0.95
NewTxnWriterFunction · 0.85

Tested by

no test coverage detected