Skip to content

Commit

Permalink
Use reset_source_checkpoint instead of delete_source
Browse files Browse the repository at this point in the history
  • Loading branch information
rdettai committed Mar 28, 2024
1 parent 624dfed commit d82b649
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions quickwit/quickwit-lambda/src/indexer/ingest/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ use quickwit_metastore::{
};
use quickwit_proto::indexing::CpuCapacity;
use quickwit_proto::metastore::{
CreateIndexRequest, DeleteSourceRequest, IndexMetadataRequest, MetastoreError,
MetastoreService, MetastoreServiceClient,
CreateIndexRequest, IndexMetadataRequest, MetastoreError, MetastoreService,
MetastoreServiceClient, ResetSourceCheckpointRequest,
};
use quickwit_proto::types::{NodeId, PipelineUid};
use quickwit_search::SearchJobPlacer;
Expand Down Expand Up @@ -308,7 +308,7 @@ pub(super) async fn prune_lambda_source(
"prune Lambda checkpoints"
);
metastore
.delete_source(DeleteSourceRequest {
.reset_source_checkpoint(ResetSourceCheckpointRequest {
index_uid: Some(index_metadata.index_uid.clone()),
source_id: LAMBDA_SOURCE_ID.to_owned(),
})
Expand Down

0 comments on commit d82b649

Please sign in to comment.