Update open region capability validation

This commit is contained in:
copilot-swe-agent[bot]
2026-05-26 19:14:19 +00:00
committed by GitHub
parent cbc8657f77
commit d89bd201d2
2 changed files with 4 additions and 3 deletions

View File

@@ -74,7 +74,10 @@ impl OpenCandidateRegion {
if matches!(open_reason, OpenRegionReason::RegionFailover) {
let wal_options = region_wal_options
.get(&region_number)
.map(|wal_options| serde_json::from_str::<WalOptions>(wal_options))
.map(|wal_options| {
serde_json::from_str::<WalOptions>(wal_options)
.context(common_meta::error::SerdeJsonSnafu)
})
.transpose()
.context(error::ParseWalOptionsSnafu)?;

View File

@@ -186,7 +186,6 @@ async fn test_batch_catchup_with_format(factory: Option<LogStoreFactory>, flat_f
metadata_entry_id: None,
location_id: None,
checkpoint: None,
required_capabilities: Default::default(),
},
)
})
@@ -234,7 +233,6 @@ async fn test_batch_catchup_err_with_format(factory: Option<LogStoreFactory>, fl
metadata_entry_id: None,
location_id: None,
checkpoint: None,
required_capabilities: Default::default(),
},
)
})