From 9bb64ad6c9f5a82b417e3325a47635e5b01bfb3e Mon Sep 17 00:00:00 2001 From: evenyag Date: Wed, 21 Feb 2024 17:18:04 +0800 Subject: [PATCH] chore: typos --- src/mito2/src/memtable/merge_tree/partition.rs | 2 +- src/mito2/src/memtable/merge_tree/tree.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mito2/src/memtable/merge_tree/partition.rs b/src/mito2/src/memtable/merge_tree/partition.rs index 11a06e028bf6..4e3b7072c5c2 100644 --- a/src/mito2/src/memtable/merge_tree/partition.rs +++ b/src/mito2/src/memtable/merge_tree/partition.rs @@ -74,7 +74,7 @@ impl Partition { } /// Writes to the partition without a primary key. - pub fn write_on_key(&self, key_value: KeyValue, metrics: &mut WriteMetrics) -> Result<()> { + pub fn write_no_key(&self, key_value: KeyValue, metrics: &mut WriteMetrics) -> Result<()> { let mut inner = self.inner.write().unwrap(); // If no primary key, always write to the first shard. if inner.shards.is_empty() { diff --git a/src/mito2/src/memtable/merge_tree/tree.rs b/src/mito2/src/memtable/merge_tree/tree.rs index 6ff714bd17bd..d9c26611f362 100644 --- a/src/mito2/src/memtable/merge_tree/tree.rs +++ b/src/mito2/src/memtable/merge_tree/tree.rs @@ -240,7 +240,7 @@ impl MergeTree { let partition_key = Partition::get_partition_key(&key_value, self.is_partitioned); let partition = self.get_or_create_partition(partition_key); - partition.write_on_key(key_value, metrics) + partition.write_no_key(key_value, metrics) } fn get_or_create_partition(&self, partition_key: PartitionKey) -> PartitionRef {