| 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 |
nothing calls this directly
no test coverage detected