Skip to content

Commit bc0313a

Browse files
committed
cleaned up handling of failed startup from snapshot
1 parent bcfbb27 commit bc0313a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/chain/controller.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -571,12 +571,12 @@ struct controller_impl {
571571
ilog( "database initialized with hash: ${hash}", ("hash", hash) );
572572

573573
init(check_shutdown);
574+
ilog( "Finished initialization from snapshot" );
574575
} catch (boost::interprocess::bad_alloc& e) {
575-
elog( "db storage not configured to have enough storage for the provided snapshot, please increase and retry snapshot" );
576-
throw e;
576+
elog( "Failed initialization from snapshot - db storage not configured to have enough storage for the provided snapshot, please increase and retry snapshot" );
577+
shutdown();
577578
}
578579

579-
ilog( "Finished initialization from snapshot" );
580580
}
581581

582582
void startup(std::function<void()> shutdown, std::function<bool()> check_shutdown, const genesis_state& genesis) {

0 commit comments

Comments
 (0)