Fix purge and enterprise tests
This commit is contained in:
@@ -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(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user