pub async fn break_catalog_with_weird_version(catalog: &PreservedCatalog) {
        let tkey = get_tkey(catalog);
        let path = file_path(
            &catalog.object_store,
            catalog.server_id,
            &catalog.db_name,
            &tkey,
            FileType::Transaction,
        );
        let mut proto = load_transaction_proto(&catalog.object_store, &path)
            .await
            .unwrap();
        proto.version = 42;
        store_transaction_proto(&catalog.object_store, &path, &proto)
            .await
            .unwrap();
    }
/// Break preserved catalog by moving one of the transaction files into a weird unknown version.
Break preserved catalog by moving one of the transaction files into a weird unknown version.
Break preserved catalog by moving one of the transaction files into a weird unknown version .
pub async fn break_catalog_with_weird_version(catalog: &PreservedCatalog) {
        let tkey = get_tkey(catalog);
        let path = file_path(
            &catalog.object_store,
            catalog.server_id,
            &catalog.db_name,
            &tkey,
            FileType::Transaction,
        );
        let mut proto = load_transaction_proto(&catalog.object_store, &path)
            .await
            .unwrap();
        proto.version = 42;
        store_transaction_proto(&catalog.object_store, &path, &proto)
            .await
            .unwrap();
    }
pub async fn break_catalog_with_weird_version ( catalog : & PreservedCatalog ) { let tkey = get_tkey ( catalog ) ; let path = file_path ( & catalog . object_store , catalog . server_id , & catalog . db_name , & tkey , FileType :: Transaction , ) ; let mut proto = load_transaction_proto ( & catalog . object_store , & path ) . await . unwrap ( ) ; proto . version = 42 ; store_transaction_proto ( & catalog . object_store , & path , & proto ) . await . unwrap ( ) ; }
Break preserved catalog by moving one of the transaction files into a weird unknown version.
Break preserved catalog by moving one of the transaction files into a weird unknown version .
catalog
&PreservedCatalog
catalog
&PreservedCatalog