diff --git a/nucliadb_vectors/src/service/writer.rs b/nucliadb_vectors/src/service/writer.rs index dd347313b5..f830d89f2f 100644 --- a/nucliadb_vectors/src/service/writer.rs +++ b/nucliadb_vectors/src/service/writer.rs @@ -32,7 +32,7 @@ use nucliadb_core::protos::ResourceId; use nucliadb_core::tracing::{self, *}; use nucliadb_core::vectors::MergeMetrics; use nucliadb_core::vectors::*; -use nucliadb_core::{IndexFiles, RawReplicaState}; +use nucliadb_core::IndexFiles; use nucliadb_procs::measure; use std::collections::HashMap; use std::fmt::Debug; @@ -193,11 +193,6 @@ impl VectorWriter for VectorWriterService { // Should be called along with a lock at a higher level to be safe let replica_state = replication::get_index_files(&self.path, prefix, ignored_segment_ids)?; - if replica_state.files.is_empty() { - // exit with no changes - return Ok(IndexFiles::Other(RawReplicaState::default())); - } - Ok(IndexFiles::Other(replica_state)) } }