Fix purge and enterprise tests

This commit is contained in:
mdecimus
2025-05-18 09:47:46 +02:00
parent 65fe4b1b49
commit 7e76bcd7f1
8 changed files with 46 additions and 48 deletions

View File

@@ -15,8 +15,8 @@ use trc::{AddContext, StoreEvent};
use crate::{
BitmapKey, Deserialize, IterateParams, Key, QueryResult, SUBSPACE_BITMAP_ID,
SUBSPACE_BITMAP_TAG, SUBSPACE_BITMAP_TEXT, SUBSPACE_INDEXES, SUBSPACE_LOGS, Store, U32_LEN,
Value, ValueKey,
SUBSPACE_BITMAP_TAG, SUBSPACE_BITMAP_TEXT, SUBSPACE_COUNTER, SUBSPACE_INDEXES, SUBSPACE_LOGS,
Store, U32_LEN, Value, ValueKey,
write::{
AnyClass, AnyKey, AssignedIds, Batch, BatchBuilder, BitmapClass, BitmapHash, Operation,
ReportClass, ValueClass, ValueOp,
@@ -387,6 +387,7 @@ impl Store {
SUBSPACE_BITMAP_TEXT,
SUBSPACE_LOGS,
SUBSPACE_INDEXES,
SUBSPACE_COUNTER,
] {
self.delete_range(
AnyKey {
@@ -434,24 +435,6 @@ impl Store {
.caused_by(trc::location!())?;
}
// Delete property counters (TODO: make this more elegant)
self.delete_range(
ValueKey {
account_id,
collection: 1,
document_id: 0,
class: ValueClass::Property(84),
},
ValueKey {
account_id,
collection: 1,
document_id: u32::MAX,
class: ValueClass::Property(84),
},
)
.await
.caused_by(trc::location!())?;
Ok(())
}