@@ -207,38 +207,37 @@ impl OpenableDurableCatalogState for OpenableConnection {
207
207
#[ tracing:: instrument( name = "storage::open_check" , level = "info" , skip_all) ]
208
208
async fn open_savepoint (
209
209
mut self : Box < Self > ,
210
- boot_ts : EpochMillis ,
210
+ initial_ts : EpochMillis ,
211
211
bootstrap_args : & BootstrapArgs ,
212
212
deploy_generation : Option < u64 > ,
213
213
epoch_lower_bound : Option < Epoch > ,
214
214
) -> Result < Box < dyn DurableCatalogState > , CatalogError > {
215
215
self . open_stash_savepoint ( epoch_lower_bound) . await ?;
216
216
let stash = self . stash . take ( ) . expect ( "opened above" ) ;
217
- retry_open ( stash, boot_ts , bootstrap_args, deploy_generation) . await
217
+ retry_open ( stash, initial_ts , bootstrap_args, deploy_generation) . await
218
218
}
219
219
220
220
#[ tracing:: instrument( name = "storage::open_read_only" , level = "info" , skip_all) ]
221
221
async fn open_read_only (
222
222
mut self : Box < Self > ,
223
- boot_ts : EpochMillis ,
224
223
bootstrap_args : & BootstrapArgs ,
225
224
) -> Result < Box < dyn DurableCatalogState > , CatalogError > {
226
225
self . open_stash_read_only ( ) . await ?;
227
226
let stash = self . stash . take ( ) . expect ( "opened above" ) ;
228
- retry_open ( stash, boot_ts , bootstrap_args, None ) . await
227
+ retry_open ( stash, EpochMillis :: MIN , bootstrap_args, None ) . await
229
228
}
230
229
231
230
#[ tracing:: instrument( name = "storage::open" , level = "info" , skip_all) ]
232
231
async fn open (
233
232
mut self : Box < Self > ,
234
- boot_ts : EpochMillis ,
233
+ initial_ts : EpochMillis ,
235
234
bootstrap_args : & BootstrapArgs ,
236
235
deploy_generation : Option < u64 > ,
237
236
epoch_lower_bound : Option < Epoch > ,
238
237
) -> Result < Box < dyn DurableCatalogState > , CatalogError > {
239
238
self . open_stash ( epoch_lower_bound) . await ?;
240
239
let stash = self . stash . take ( ) . expect ( "opened above" ) ;
241
- retry_open ( stash, boot_ts , bootstrap_args, deploy_generation) . await
240
+ retry_open ( stash, initial_ts , bootstrap_args, deploy_generation) . await
242
241
}
243
242
244
243
#[ tracing:: instrument( name = "storage::open_debug" , level = "info" , skip_all) ]
@@ -451,7 +450,7 @@ impl OpenableDurableCatalogState for OpenableConnection {
451
450
/// If the inner stash has not been opened.
452
451
async fn retry_open (
453
452
mut stash : Stash ,
454
- boot_ts : EpochMillis ,
453
+ initial_ts : EpochMillis ,
455
454
bootstrap_args : & BootstrapArgs ,
456
455
deploy_generation : Option < u64 > ,
457
456
) -> Result < Box < dyn DurableCatalogState > , CatalogError > {
@@ -462,7 +461,7 @@ async fn retry_open(
462
461
let mut retry = pin:: pin!( retry) ;
463
462
464
463
loop {
465
- match open_inner ( stash, boot_ts . clone ( ) , bootstrap_args, deploy_generation) . await {
464
+ match open_inner ( stash, initial_ts . clone ( ) , bootstrap_args, deploy_generation) . await {
466
465
Ok ( conn) => {
467
466
return Ok ( conn) ;
468
467
}
@@ -480,7 +479,7 @@ async fn retry_open(
480
479
#[ tracing:: instrument( name = "storage::open_inner" , level = "info" , skip_all) ]
481
480
async fn open_inner (
482
481
mut stash : Stash ,
483
- boot_ts : EpochMillis ,
482
+ initial_ts : EpochMillis ,
484
483
bootstrap_args : & BootstrapArgs ,
485
484
deploy_generation : Option < u64 > ,
486
485
) -> Result < Box < Connection > , ( Stash , CatalogError ) > {
@@ -499,7 +498,7 @@ async fn open_inner(
499
498
Ok ( txn) => txn,
500
499
Err ( e) => return Err ( ( conn. stash , e) ) ,
501
500
} ;
502
- match initialize:: initialize ( & mut tx, & args, boot_ts , deploy_generation) . await {
501
+ match initialize:: initialize ( & mut tx, & args, initial_ts , deploy_generation) . await {
503
502
Ok ( ( ) ) => { }
504
503
Err ( e) => return Err ( ( conn. stash , e) ) ,
505
504
}
@@ -1318,14 +1317,14 @@ impl TestOpenableConnection<'_> {
1318
1317
impl OpenableDurableCatalogState for TestOpenableConnection < ' _ > {
1319
1318
async fn open_savepoint (
1320
1319
mut self : Box < Self > ,
1321
- boot_ts : EpochMillis ,
1320
+ initial_ts : EpochMillis ,
1322
1321
bootstrap_args : & BootstrapArgs ,
1323
1322
deploy_generation : Option < u64 > ,
1324
1323
epoch_lower_bound : Option < Epoch > ,
1325
1324
) -> Result < Box < dyn DurableCatalogState > , CatalogError > {
1326
1325
self . openable_connection
1327
1326
. open_savepoint (
1328
- boot_ts ,
1327
+ initial_ts ,
1329
1328
bootstrap_args,
1330
1329
deploy_generation,
1331
1330
epoch_lower_bound,
@@ -1335,24 +1334,23 @@ impl OpenableDurableCatalogState for TestOpenableConnection<'_> {
1335
1334
1336
1335
async fn open_read_only (
1337
1336
mut self : Box < Self > ,
1338
- boot_ts : EpochMillis ,
1339
1337
bootstrap_args : & BootstrapArgs ,
1340
1338
) -> Result < Box < dyn DurableCatalogState > , CatalogError > {
1341
1339
self . openable_connection
1342
- . open_read_only ( boot_ts , bootstrap_args)
1340
+ . open_read_only ( bootstrap_args)
1343
1341
. await
1344
1342
}
1345
1343
1346
1344
async fn open (
1347
1345
mut self : Box < Self > ,
1348
- boot_ts : EpochMillis ,
1346
+ initial_ts : EpochMillis ,
1349
1347
bootstrap_args : & BootstrapArgs ,
1350
1348
deploy_generation : Option < u64 > ,
1351
1349
epoch_lower_bound : Option < Epoch > ,
1352
1350
) -> Result < Box < dyn DurableCatalogState > , CatalogError > {
1353
1351
self . openable_connection
1354
1352
. open (
1355
- boot_ts ,
1353
+ initial_ts ,
1356
1354
bootstrap_args,
1357
1355
deploy_generation,
1358
1356
epoch_lower_bound,
0 commit comments