Skip to content

Commit

Permalink
Merge pull request #12 from Flowpack/exclude-config-epoch-from-pruning
Browse files Browse the repository at this point in the history
TASK: exclude configEpoch from pruning
  • Loading branch information
batabana authored Aug 16, 2022
2 parents 0d1a0e1 + d96c742 commit 40b2eb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/Core/RedisPruneService.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class RedisPruneService
{
// go through all keys in the selected content store
// check wether they are reserved keys or currently active or contain one of the currently registered releases ids
// check whether they are reserved keys or currently active or contain one of the currently registered releases ids
// if not: delete
const PRUNE_LUA_SCRIPT = '
local contentStoreCurrent = redis.call("GET", "contentStore:current")
Expand All @@ -32,6 +32,7 @@ class RedisPruneService
for index,contentStoreKey in ipairs(contentStoreAllKeys) do
if contentStoreKey ~= "contentStore:current"
and contentStoreKey ~= "contentStore:registeredReleases"
and contentStoreKey ~= "contentStore:configEpoch"
and string.sub(contentStoreKey, 1, string.len(currentContentStoreStart)) ~= currentContentStoreStart
and not table_contains_value(contentStoreRegisteredReleases, contentStoreKey) then
redis.call("DEL", contentStoreKey)
Expand Down

0 comments on commit 40b2eb7

Please sign in to comment.