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

Method addMutation

fdbserver/StorageCache.actor.cpp:1083–1098  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1081}
1082
1083void StorageCacheData::addMutation(KeyRangeRef const& cachedKeyRange, Version version, MutationRef const& mutation) {
1084 MutationRef expanded = mutation;
1085 auto& mLog = addVersionToMutationLog(version);
1086
1087 if (!expandMutation(expanded, data(), cachedKeyRange.end, mLog.arena())) {
1088 return;
1089 }
1090 expanded = addMutationToMutationLog(mLog, expanded);
1091
1092 DEBUG_MUTATION("expandedMutation", version, expanded)
1093 .detail("Begin", cachedKeyRange.begin)
1094 .detail("End", cachedKeyRange.end);
1095 applyMutation(expanded, mLog.arena(), mutableData());
1096 // printf("\nSCUpdate: Printing versioned tree after applying mutation\n");
1097 // mutableData().printTree(version);
1098}
1099
1100void removeDataRange(StorageCacheData* sc,
1101 Standalone<VerUpdateRef>& mLV,

Callers 3

addMutationFunction · 0.45
splitMutationFunction · 0.45

Calls 12

expandMutationFunction · 0.85
isSingleKeyMutationFunction · 0.85
TraceEventClass · 0.85
detailMethod · 0.80
applyMutationFunction · 0.70
dataFunction · 0.50
containsMethod · 0.45
sizeMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45
push_back_deepMethod · 0.45
backMethod · 0.45

Tested by

no test coverage detected