| 1081 | } |
| 1082 | |
| 1083 | void 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 | |
| 1100 | void removeDataRange(StorageCacheData* sc, |
| 1101 | Standalone<VerUpdateRef>& mLV, |
no test coverage detected