@@ -126,6 +126,9 @@ pub struct PrewriteRequest {
126126 /// The level of assertion to use on this prewrte request.
127127 #[ prost( enumeration = "AssertionLevel" , tag = "15" ) ]
128128 pub assertion_level : i32 ,
129+ /// Reserved for file based transaction.
130+ #[ prost( uint64, repeated, tag = "100" ) ]
131+ pub txn_file_chunks : :: prost:: alloc:: vec:: Vec < u64 > ,
129132}
130133#[ allow( clippy:: derive_partial_eq_without_eq) ]
131134#[ derive( Clone , PartialEq , :: prost:: Message ) ]
@@ -255,6 +258,9 @@ pub struct TxnHeartBeatRequest {
255258 /// The new TTL the sender would like.
256259 #[ prost( uint64, tag = "4" ) ]
257260 pub advise_lock_ttl : u64 ,
261+ /// Reserved for file based transaction.
262+ #[ prost( bool , tag = "100" ) ]
263+ pub is_txn_file : bool ,
258264}
259265#[ allow( clippy:: derive_partial_eq_without_eq) ]
260266#[ derive( Clone , PartialEq , :: prost:: Message ) ]
@@ -304,6 +310,9 @@ pub struct CheckTxnStatusRequest {
304310 /// it's still uncertain.
305311 #[ prost( bool , tag = "8" ) ]
306312 pub resolving_pessimistic_lock : bool ,
313+ /// Reserved for file based transaction.
314+ #[ prost( bool , tag = "100" ) ]
315+ pub is_txn_file : bool ,
307316}
308317#[ allow( clippy:: derive_partial_eq_without_eq) ]
309318#[ derive( Clone , PartialEq , :: prost:: Message ) ]
@@ -373,6 +382,9 @@ pub struct CommitRequest {
373382 /// Timestamp for the end of the transaction. Must be greater than `start_version`.
374383 #[ prost( uint64, tag = "4" ) ]
375384 pub commit_version : u64 ,
385+ /// Reserved for file based transaction.
386+ #[ prost( bool , tag = "100" ) ]
387+ pub is_txn_file : bool ,
376388}
377389#[ allow( clippy:: derive_partial_eq_without_eq) ]
378390#[ derive( Clone , PartialEq , :: prost:: Message ) ]
@@ -470,6 +482,9 @@ pub struct BatchRollbackRequest {
470482 /// The keys to rollback.
471483 #[ prost( bytes = "vec" , repeated, tag = "3" ) ]
472484 pub keys : :: prost:: alloc:: vec:: Vec < :: prost:: alloc:: vec:: Vec < u8 > > ,
485+ /// Reserved for file based transaction.
486+ #[ prost( bool , tag = "100" ) ]
487+ pub is_txn_file : bool ,
473488}
474489#[ allow( clippy:: derive_partial_eq_without_eq) ]
475490#[ derive( Clone , PartialEq , :: prost:: Message ) ]
@@ -528,6 +543,9 @@ pub struct ResolveLockRequest {
528543 /// Only resolve specified keys.
529544 #[ prost( bytes = "vec" , repeated, tag = "5" ) ]
530545 pub keys : :: prost:: alloc:: vec:: Vec < :: prost:: alloc:: vec:: Vec < u8 > > ,
546+ /// Reserved for file based transaction.
547+ #[ prost( bool , tag = "100" ) ]
548+ pub is_txn_file : bool ,
531549}
532550#[ allow( clippy:: derive_partial_eq_without_eq) ]
533551#[ derive( Clone , PartialEq , :: prost:: Message ) ]
@@ -1050,6 +1068,9 @@ pub struct LockInfo {
10501068 pub min_commit_ts : u64 ,
10511069 #[ prost( bytes = "vec" , repeated, tag = "10" ) ]
10521070 pub secondaries : :: prost:: alloc:: vec:: Vec < :: prost:: alloc:: vec:: Vec < u8 > > ,
1071+ /// Reserved for file based transaction.
1072+ #[ prost( bool , tag = "100" ) ]
1073+ pub is_txn_file : bool ,
10531074}
10541075#[ allow( clippy:: derive_partial_eq_without_eq) ]
10551076#[ derive( Clone , PartialEq , :: prost:: Message ) ]
@@ -1344,6 +1365,9 @@ pub struct TxnInfo {
13441365 pub txn : u64 ,
13451366 #[ prost( uint64, tag = "2" ) ]
13461367 pub status : u64 ,
1368+ /// Reserved for file based transaction.
1369+ #[ prost( bool , tag = "100" ) ]
1370+ pub is_txn_file : bool ,
13471371}
13481372#[ allow( clippy:: derive_partial_eq_without_eq) ]
13491373#[ derive( Clone , PartialEq , :: prost:: Message ) ]
0 commit comments