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 eda7c40 commit 627c34f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion 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 @@ -48,6 +48,10 @@ impl<S> RegionWorkerLoop<S> {
// Get the version before alter.
let version = region.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
);
// Returns if it altered.
sender.send(Ok(Output::AffectedRows(0)));
return;
Expand Down

0 comments on commit 627c34f

Please sign in to comment.