Skip to content

Commit

Permalink
chore: apply suggestions from CR
Browse files Browse the repository at this point in the history
  • Loading branch information
WenyXu committed Sep 18, 2023
1 parent 39e0e11 commit e226681
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/mito2/src/worker/handle_alter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use std::sync::Arc;

use common_query::Output;
use common_telemetry::{error, info};
use common_telemetry::{error, info, warn};
use snafu::ResultExt;
use store_api::metadata::{RegionMetadata, RegionMetadataBuilder, RegionMetadataRef};
use store_api::region_request::RegionAlterRequest;
Expand Down Expand Up @@ -47,15 +47,11 @@ impl<S> RegionWorkerLoop<S> {

// Get the version before alter.
let version = region.version();
<<<<<<< Updated upstream
if version.metadata.schema_version >= request.schema_version {
=======
if version.metadata.schema_version > request.schema_version {
warn!(
"region schema version {} greater than request schema version {}",
version.metadata.schema_version, request.schema_version
"region id:{}, region schema version {} greater than request schema version {}",
region_id, version.metadata.schema_version, request.schema_version
);
>>>>>>> Stashed changes
// Returns if it altered.
sender.send(Ok(Output::AffectedRows(0)));
return;
Expand Down

0 comments on commit e226681

Please sign in to comment.