@@ -26,7 +26,7 @@ pub struct ParquetFileGapDetectorInner {
26
26
}
27
27
28
28
pub struct ParquetFileGapDetectorResult {
29
- pub next_version_to_process : u64 ,
29
+ pub last_success_version : u64 ,
30
30
pub num_gaps : u64 ,
31
31
pub last_transaction_timestamp : Option < aptos_protos:: util:: timestamp:: Timestamp > ,
32
32
}
@@ -138,7 +138,7 @@ impl GapDetectorTrait for ParquetFileGapDetectorInner {
138
138
self . update_next_version_to_process ( self . max_version , & result. table_name ) ;
139
139
return Ok ( GapDetectorResult :: ParquetFileGapDetectorResult (
140
140
ParquetFileGapDetectorResult {
141
- next_version_to_process : self . next_version_to_process as u64 ,
141
+ last_success_version : self . next_version_to_process as u64 - 1 ,
142
142
num_gaps : ( self . max_version - self . next_version_to_process ) as u64 ,
143
143
last_transaction_timestamp : result. last_transaction_timestamp ,
144
144
} ,
@@ -164,7 +164,7 @@ impl GapDetectorTrait for ParquetFileGapDetectorInner {
164
164
165
165
Ok ( GapDetectorResult :: ParquetFileGapDetectorResult (
166
166
ParquetFileGapDetectorResult {
167
- next_version_to_process : self . next_version_to_process as u64 ,
167
+ last_success_version : self . next_version_to_process as u64 - 1 ,
168
168
num_gaps : ( self . max_version - self . next_version_to_process ) as u64 ,
169
169
last_transaction_timestamp : result. last_transaction_timestamp ,
170
170
} ,
0 commit comments