Rollback crash recovery mechanism (#2091)

This commit is contained in:
Vanshdeep Singh 2018-02-23 19:05:18 +05:30 committed by vrde
parent e6c77d5fcd
commit cdec60a7c0
2 changed files with 1 additions and 3 deletions

View File

@ -15,7 +15,6 @@ from bigchaindb.common.exceptions import (StartupError,
KeypairNotFoundException, KeypairNotFoundException,
DatabaseDoesNotExist) DatabaseDoesNotExist)
import bigchaindb import bigchaindb
from bigchaindb.tendermint.core import BigchainDB
from bigchaindb import backend from bigchaindb import backend
from bigchaindb.backend import schema from bigchaindb.backend import schema
from bigchaindb.backend import query from bigchaindb.backend import query
@ -193,7 +192,7 @@ def run_start(args):
"""Start the processes to run the node""" """Start the processes to run the node"""
logger.info('BigchainDB Version %s', bigchaindb.__version__) logger.info('BigchainDB Version %s', bigchaindb.__version__)
run_recover(BigchainDB()) # run_recover(BigchainDB())
if args.allow_temp_keypair: if args.allow_temp_keypair:
if not (bigchaindb.config['keypair']['private'] or if not (bigchaindb.config['keypair']['private'] or

View File

@ -589,7 +589,6 @@ def test_recover_db_from_zombie_block(b, monkeypatch):
assert block['height'] == 9 assert block['height'] == 9
@pytest.mark.tendermint
@patch('bigchaindb.config_utils.autoconfigure') @patch('bigchaindb.config_utils.autoconfigure')
@patch('bigchaindb.commands.bigchaindb.run_recover') @patch('bigchaindb.commands.bigchaindb.run_recover')
@patch('bigchaindb.tendermint.commands.start') @patch('bigchaindb.tendermint.commands.start')