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

Method applyMutation

fdbserver/StorageCache.actor.cpp:1710–1730  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1708 : currentVersion(invalidVersion), fromVersion(currentVersion), processedCacheStartKey(false) {}
1709
1710 void applyMutation(StorageCacheData* data, MutationRef const& m, Version ver) {
1711 //TraceEvent("SCNewVersion", data->thisServerID).detail("VerWas", data->mutableData().latestVersion).detail("ChVer", ver);
1712
1713 if (currentVersion != ver) {
1714 fromVersion = currentVersion;
1715 currentVersion = ver;
1716 data->mutableData().createNewVersion(ver);
1717 }
1718
1719 DEBUG_MUTATION("SCUpdateMutation", ver, m);
1720 if (m.param1.startsWith(systemKeys.end)) {
1721 //TraceEvent("SCPrivateData", data->thisServerID).detail("Mutation", m).detail("Version", ver);
1722 applyPrivateCacheData(data, m);
1723 } else {
1724 splitMutation(data, data->cachedRangeMap, m, ver);
1725 }
1726
1727 // TODO
1728 if (data->otherError.getFuture().isReady())
1729 data->otherError.getFuture().get();
1730 }
1731
1732 Version currentVersion;
1733

Callers

nothing calls this directly

Calls 6

createNewVersionMethod · 0.80
splitMutationFunction · 0.70
getMethod · 0.65
startsWithMethod · 0.45
isReadyMethod · 0.45
getFutureMethod · 0.45

Tested by

no test coverage detected