mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2025-12-23 02:29:57 +00:00
Make DeleteMeta pub (#2765)
Co-authored-by: Ming Ying <ming.ying.nyc@gmail.com>
This commit is contained in:
@@ -13,9 +13,9 @@ use crate::store::Compressor;
|
|||||||
use crate::{Inventory, Opstamp, TrackedObject};
|
use crate::{Inventory, Opstamp, TrackedObject};
|
||||||
|
|
||||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||||
struct DeleteMeta {
|
pub struct DeleteMeta {
|
||||||
num_deleted_docs: u32,
|
num_deleted_docs: u32,
|
||||||
opstamp: Opstamp,
|
pub opstamp: Opstamp,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Default)]
|
#[derive(Clone, Default)]
|
||||||
@@ -213,7 +213,7 @@ impl SegmentMeta {
|
|||||||
struct InnerSegmentMeta {
|
struct InnerSegmentMeta {
|
||||||
segment_id: SegmentId,
|
segment_id: SegmentId,
|
||||||
max_doc: u32,
|
max_doc: u32,
|
||||||
deletes: Option<DeleteMeta>,
|
pub deletes: Option<DeleteMeta>,
|
||||||
/// If you want to avoid the SegmentComponent::TempStore file to be covered by
|
/// If you want to avoid the SegmentComponent::TempStore file to be covered by
|
||||||
/// garbage collection and deleted, set this to true. This is used during merge.
|
/// garbage collection and deleted, set this to true. This is used during merge.
|
||||||
#[serde(skip)]
|
#[serde(skip)]
|
||||||
|
|||||||
Reference in New Issue
Block a user