@@ -134,6 +134,9 @@ pub struct PrewriteRequest {
134134 pub for_update_ts_constraints : :: prost:: alloc:: vec:: Vec <
135135 prewrite_request:: ForUpdateTsConstraint ,
136136 > ,
137+ /// Reserved for file based transaction.
138+ #[ prost( uint64, repeated, tag = "100" ) ]
139+ pub txn_file_chunks : :: prost:: alloc:: vec:: Vec < u64 > ,
137140}
138141/// Nested message and enum types in `PrewriteRequest`.
139142pub mod prewrite_request {
@@ -363,6 +366,9 @@ pub struct TxnHeartBeatRequest {
363366 /// The new TTL the sender would like.
364367 #[ prost( uint64, tag = "4" ) ]
365368 pub advise_lock_ttl : u64 ,
369+ /// Reserved for file based transaction.
370+ #[ prost( bool , tag = "100" ) ]
371+ pub is_txn_file : bool ,
366372}
367373#[ allow( clippy:: derive_partial_eq_without_eq) ]
368374#[ derive( Clone , PartialEq , :: prost:: Message ) ]
@@ -422,6 +428,9 @@ pub struct CheckTxnStatusRequest {
422428 /// For new versions, this field should always be set to true.
423429 #[ prost( bool , tag = "9" ) ]
424430 pub verify_is_primary : bool ,
431+ /// Reserved for file based transaction.
432+ #[ prost( bool , tag = "100" ) ]
433+ pub is_txn_file : bool ,
425434}
426435#[ allow( clippy:: derive_partial_eq_without_eq) ]
427436#[ derive( Clone , PartialEq , :: prost:: Message ) ]
@@ -497,6 +506,9 @@ pub struct CommitRequest {
497506 /// Timestamp for the end of the transaction. Must be greater than `start_version`.
498507 #[ prost( uint64, tag = "4" ) ]
499508 pub commit_version : u64 ,
509+ /// Reserved for file based transaction.
510+ #[ prost( bool , tag = "100" ) ]
511+ pub is_txn_file : bool ,
500512}
501513#[ allow( clippy:: derive_partial_eq_without_eq) ]
502514#[ derive( Clone , PartialEq , :: prost:: Message ) ]
@@ -597,6 +609,9 @@ pub struct BatchRollbackRequest {
597609 /// The keys to rollback.
598610 #[ prost( bytes = "vec" , repeated, tag = "3" ) ]
599611 pub keys : :: prost:: alloc:: vec:: Vec < :: prost:: alloc:: vec:: Vec < u8 > > ,
612+ /// Reserved for file based transaction.
613+ #[ prost( bool , tag = "100" ) ]
614+ pub is_txn_file : bool ,
600615}
601616#[ allow( clippy:: derive_partial_eq_without_eq) ]
602617#[ derive( Clone , PartialEq , :: prost:: Message ) ]
@@ -661,6 +676,9 @@ pub struct ResolveLockRequest {
661676 /// Only resolve specified keys.
662677 #[ prost( bytes = "vec" , repeated, tag = "5" ) ]
663678 pub keys : :: prost:: alloc:: vec:: Vec < :: prost:: alloc:: vec:: Vec < u8 > > ,
679+ /// Reserved for file based transaction.
680+ #[ prost( bool , tag = "100" ) ]
681+ pub is_txn_file : bool ,
664682}
665683#[ allow( clippy:: derive_partial_eq_without_eq) ]
666684#[ derive( Clone , PartialEq , :: prost:: Message ) ]
@@ -1308,6 +1326,9 @@ pub struct LockInfo {
13081326 /// It can be used to help the client decide whether to try resolving the lock.
13091327 #[ prost( uint64, tag = "11" ) ]
13101328 pub duration_to_last_update_ms : u64 ,
1329+ /// Reserved for file based transaction.
1330+ #[ prost( bool , tag = "100" ) ]
1331+ pub is_txn_file : bool ,
13111332}
13121333#[ allow( clippy:: derive_partial_eq_without_eq) ]
13131334#[ derive( Clone , PartialEq , :: prost:: Message ) ]
@@ -1781,6 +1802,9 @@ pub struct TxnInfo {
17811802 pub txn : u64 ,
17821803 #[ prost( uint64, tag = "2" ) ]
17831804 pub status : u64 ,
1805+ /// Reserved for file based transaction.
1806+ #[ prost( bool , tag = "100" ) ]
1807+ pub is_txn_file : bool ,
17841808}
17851809#[ allow( clippy:: derive_partial_eq_without_eq) ]
17861810#[ derive( Clone , PartialEq , :: prost:: Message ) ]
0 commit comments