MCPcopy Create free account
hub / github.com/apple/foundationdb / dumpMutations

Function dumpMutations

fdbclient/NativeAPI.actor.cpp:483–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481}
482
483void dumpMutations(const MutationListRef& mutations) {
484 for (auto m = mutations.begin(); m; ++m) {
485 switch (m->type) {
486 case MutationRef::SetValue:
487 printf(" '%s' := '%s'\n", printable(m->param1).c_str(), printable(m->param2).c_str());
488 break;
489 case MutationRef::AddValue:
490 printf(" '%s' += '%s'", printable(m->param1).c_str(), printable(m->param2).c_str());
491 break;
492 case MutationRef::ClearRange:
493 printf(" Clear ['%s','%s')\n", printable(m->param1).c_str(), printable(m->param2).c_str());
494 break;
495 default:
496 printf(" Unknown mutation %d('%s','%s')\n",
497 m->type,
498 printable(m->param1).c_str(),
499 printable(m->param2).c_str());
500 break;
501 }
502 }
503}
504
505template <>
506void addref(DatabaseContext* ptr) {

Callers

nothing calls this directly

Calls 4

printfFunction · 0.85
printableFunction · 0.70
beginMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected