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

Function rollback

fdbserver/StorageCache.actor.cpp:1072–1081  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1070}
1071
1072void rollback(StorageCacheData* data, Version rollbackVersion, Version nextVersion) {
1073 CODE_PROBE(true, "call to cacheRange rollback");
1074 // FIXME: enable when debugKeyRange is active
1075 // debugKeyRange("Rollback", rollbackVersion, allKeys);
1076
1077 // FIXME: It's not straightforward to rollback certain versions from the VersionedMap.
1078 // It's doable. But for now, we choose to just throw away this cache role
1079
1080 throw please_reboot();
1081}
1082
1083void StorageCacheData::addMutation(KeyRangeRef const& cachedKeyRange, Version version, MutationRef const& mutation) {
1084 MutationRef expanded = mutation;

Callers 2

createFromScratchMethod · 0.70
applyPrivateCacheDataMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected