Skip to content

Commit f5e0e94

Browse files
authored
chore(mito): nit avoid clone the batch object on inverted index building (GreptimeTeam#7388)
fix: avoid clone the batch object on inverted index building Signed-off-by: lyang24 <lanqingy93@gmail.com>
1 parent ba4eda4 commit f5e0e94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mito2/src/sst/index.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,8 +660,8 @@ impl IndexBuildTask {
660660
// TODO(SNC123): optimize index batch
661661
loop {
662662
match parquet_reader.next_batch().await {
663-
Ok(Some(batch)) => {
664-
indexer.update(&mut batch.clone()).await;
663+
Ok(Some(mut batch)) => {
664+
indexer.update(&mut batch).await;
665665
}
666666
Ok(None) => break,
667667
Err(e) => {

0 commit comments

Comments
 (0)