File tree 1 file changed +15
-2
lines changed
1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -1515,11 +1515,24 @@ fn wrapped_main() -> ! {
1515
1515
pddb_os. perf_entry ( FILE_ID_SERVICES_PDDB_SRC_MAIN , perflib:: PERFMETA_STARTBLOCK , 6 , std:: line!( ) ) ;
1516
1516
let ser_result: SerializeResult =
1517
1517
if let Some ( key_name) = state. key_list . pop ( ) {
1518
- let attr = basis_cache. key_attributes ( & mut pddb_os,
1518
+ let attr = match basis_cache. key_attributes ( & mut pddb_os,
1519
1519
& state. dict ,
1520
1520
& key_name,
1521
1521
if state. is_basis_specified { Some ( & state. basis ) } else { None }
1522
- ) . expect ( "Key went missing during bulk read" ) ; // could be a concurrent process mutating. We don't handle this; flag with a panic.
1522
+ ) {
1523
+ Ok ( attr) => attr,
1524
+ Err ( e) => {
1525
+ modals. show_notification (
1526
+ & format ! ( "Error: key not found during bulk read:\n {:?}\n {:?}:{}:{}" ,
1527
+ e,
1528
+ if state. is_basis_specified{ Some ( & state. basis) } else { None } ,
1529
+ & state. dict,
1530
+ & key_name,
1531
+ ) ,
1532
+ None ) . ok ( ) ;
1533
+ continue ;
1534
+ }
1535
+ } ;
1523
1536
if attr. len < state. read_limit - state. read_total {
1524
1537
let mut d = vec ! [ 0u8 ; attr. len] ;
1525
1538
match basis_cache. key_read (
You can’t perform that action at this time.
0 commit comments