Skip to content

Commit

Permalink
Make sure to evict orphan SET items
Browse files Browse the repository at this point in the history
  • Loading branch information
sabledb-io committed Aug 3, 2024
1 parent e0d2fef commit ce7d8f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libsabledb/src/server/cron_thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ impl Cron {
/// ```no_compile
/// [0 | UID | Type ] -> [ user key ]
/// ```
/// So in the above example, even if a user overode the value by calling `set` command
/// So in the above example, even if a user overrode the value by calling `set` command
/// we can still access the orphan values and remove them from the database
async fn evict(
store: &StorageAdapter,
Expand All @@ -227,6 +227,7 @@ impl Cron {
ValueType::Zset,
vec![KeyType::ZsetMemberItem, KeyType::ZsetScoreItem],
),
(ValueType::Set, vec![KeyType::SetItem]),
];

let mut items_evicted = 0usize;
Expand Down

0 comments on commit ce7d8f8

Please sign in to comment.