Skip to content

Commit

Permalink
chore: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
evenyag committed Feb 21, 2024
1 parent 02baa61 commit 9bb64ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mito2/src/memtable/merge_tree/partition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion src/mito2/src/memtable/merge_tree/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9bb64ad

Please sign in to comment.