@@ -2657,7 +2657,7 @@ async fn cmd_db_volume_lock_holder(
26572657 let maybe_volume_repair_record = datastore
26582658 . pool_connection_for_tests ( )
26592659 . await ?
2660- . transaction_async ( |conn| async move {
2660+ . transaction_async ( async move |conn| {
26612661 use db:: schema:: volume_repair:: dsl;
26622662
26632663 conn. batch_execute_async ( ALLOW_FULL_TABLE_SCAN_SQL ) . await ?;
@@ -2802,7 +2802,7 @@ async fn cmd_db_region_used_by(
28022802 datastore
28032803 . pool_connection_for_tests ( )
28042804 . await ?
2805- . transaction_async ( |conn| async move {
2805+ . transaction_async ( async move |conn| {
28062806 use db:: schema:: disk:: dsl;
28072807
28082808 conn. batch_execute_async ( ALLOW_FULL_TABLE_SCAN_SQL ) . await ?;
@@ -2829,7 +2829,7 @@ async fn cmd_db_region_used_by(
28292829 datastore
28302830 . pool_connection_for_tests ( )
28312831 . await ?
2832- . transaction_async ( |conn| async move {
2832+ . transaction_async ( async move |conn| {
28332833 use db:: schema:: snapshot:: dsl;
28342834
28352835 conn. batch_execute_async ( ALLOW_FULL_TABLE_SCAN_SQL ) . await ?;
@@ -2860,7 +2860,7 @@ async fn cmd_db_region_used_by(
28602860 datastore
28612861 . pool_connection_for_tests ( )
28622862 . await ?
2863- . transaction_async ( |conn| async move {
2863+ . transaction_async ( async move |conn| {
28642864 use db:: schema:: image:: dsl;
28652865
28662866 conn. batch_execute_async ( ALLOW_FULL_TABLE_SCAN_SQL ) . await ?;
@@ -5019,7 +5019,7 @@ async fn cmd_db_validate_volume_references(
50195019 let region_snapshots: Vec < RegionSnapshot > = datastore
50205020 . pool_connection_for_tests ( )
50215021 . await ?
5022- . transaction_async ( |conn| async move {
5022+ . transaction_async ( async move |conn| {
50235023 // Selecting all region snapshots requires a full table scan
50245024 conn. batch_execute_async ( ALLOW_FULL_TABLE_SCAN_SQL ) . await ?;
50255025
@@ -5053,7 +5053,7 @@ async fn cmd_db_validate_volume_references(
50535053 let matching_volumes = datastore
50545054 . pool_connection_for_tests ( )
50555055 . await ?
5056- . transaction_async ( |conn| async move {
5056+ . transaction_async ( async move |conn| {
50575057 // Selecting all volumes based on the data column requires a
50585058 // full table scan
50595059 conn. batch_execute_async ( ALLOW_FULL_TABLE_SCAN_SQL ) . await ?;
@@ -5159,7 +5159,7 @@ async fn cmd_db_validate_regions(
51595159 let datasets_and_regions: Vec < ( CrucibleDataset , Region ) > = datastore
51605160 . pool_connection_for_tests ( )
51615161 . await ?
5162- . transaction_async ( |conn| async move {
5162+ . transaction_async ( async move |conn| {
51635163 // Selecting all datasets and regions requires a full table scan
51645164 conn. batch_execute_async ( ALLOW_FULL_TABLE_SCAN_SQL ) . await ?;
51655165
@@ -5294,7 +5294,7 @@ async fn cmd_db_validate_regions(
52945294 let datasets: Vec < CrucibleDataset > = datastore
52955295 . pool_connection_for_tests ( )
52965296 . await ?
5297- . transaction_async ( |conn| async move {
5297+ . transaction_async ( async move |conn| {
52985298 // Selecting all datasets and regions requires a full table scan
52995299 conn. batch_execute_async ( ALLOW_FULL_TABLE_SCAN_SQL ) . await ?;
53005300
@@ -5418,7 +5418,7 @@ async fn cmd_db_validate_region_snapshots(
54185418 datastore
54195419 . pool_connection_for_tests ( )
54205420 . await ?
5421- . transaction_async ( |conn| async move {
5421+ . transaction_async ( async move |conn| {
54225422 // Selecting all datasets and region snapshots requires a
54235423 // full table scan
54245424 conn. batch_execute_async ( ALLOW_FULL_TABLE_SCAN_SQL ) . await ?;
@@ -5614,7 +5614,7 @@ async fn cmd_db_validate_region_snapshots(
56145614 let datasets_and_regions: Vec < ( CrucibleDataset , Region ) > = datastore
56155615 . pool_connection_for_tests ( )
56165616 . await ?
5617- . transaction_async ( |conn| async move {
5617+ . transaction_async ( async move |conn| {
56185618 // Selecting all datasets and regions requires a full table scan
56195619 conn. batch_execute_async ( ALLOW_FULL_TABLE_SCAN_SQL ) . await ?;
56205620
@@ -6908,7 +6908,7 @@ async fn cmd_db_vmm_list(
69086908 let vmms = datastore
69096909 . pool_connection_for_tests ( )
69106910 . await ?
6911- . transaction_async ( |conn| async move {
6911+ . transaction_async ( async move |conn| {
69126912 // If we are including deleted VMMs, we can no longer use indices on
69136913 // the VMM table, which do not index deleted VMMs. Thus, we must
69146914 // allow a full-table scan in that case.
0 commit comments