File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -305,19 +305,25 @@ impl TransactionReadSet {
305
305
intervals : impl IntoIterator < Item = Interval > ,
306
306
) -> ( usize , usize ) {
307
307
self . read_set . indexed . mutate_entry_or_insert_with (
308
- index_name,
308
+ index_name. clone ( ) ,
309
309
|| IndexReads {
310
- fields,
310
+ fields : fields . clone ( ) ,
311
311
intervals : IntervalSet :: new ( ) ,
312
312
stack_traces : ( * READ_SET_CAPTURE_BACKTRACES ) . then_some ( vec ! [ ] ) ,
313
313
} ,
314
314
|reads| {
315
315
let IndexReads {
316
316
intervals : range_set,
317
317
stack_traces,
318
- ..
318
+ fields : existing_fields ,
319
319
} = reads;
320
320
321
+ assert_eq ! (
322
+ * existing_fields, fields,
323
+ "trying to change index fields for index {:?}!" ,
324
+ index_name
325
+ ) ;
326
+
321
327
let range_num_intervals_before = range_set. len ( ) ;
322
328
for interval in intervals {
323
329
if let Some ( stack_traces) = stack_traces. as_mut ( ) {
You can’t perform that action at this time.
0 commit comments