| 1941 | } |
| 1942 | |
| 1943 | void DatabaseContext::invalidateCache(const KeyRef& tenantPrefix, const KeyRef& key, Reverse isBackward) { |
| 1944 | Arena arena; |
| 1945 | KeyRef resolvedKey = key; |
| 1946 | if (!tenantPrefix.empty()) { |
| 1947 | resolvedKey = resolvedKey.withPrefix(tenantPrefix, arena); |
| 1948 | } |
| 1949 | |
| 1950 | if (isBackward) { |
| 1951 | locationCache.rangeContainingKeyBefore(resolvedKey)->value() = Reference<LocationInfo>(); |
| 1952 | } else { |
| 1953 | locationCache.rangeContaining(resolvedKey)->value() = Reference<LocationInfo>(); |
| 1954 | } |
| 1955 | } |
| 1956 | |
| 1957 | void DatabaseContext::invalidateCache(const KeyRef& tenantPrefix, const KeyRangeRef& keys) { |
| 1958 | Arena arena; |
no test coverage detected