add dirty flag to make node to db reconnection faster
The table hive.irreversible_data was extended to column dirty (boolean).
When dirty is TRUE it means that irreversible data are in an inconsistent state.
When the HAF will crash during sync (replay or p2p sync) then data are
inconsistant: some dumping data thread finishes their jobs and some do not.
When node after the crash will start, then it checks the dirty flag, if flag
is set, then inconsistent data have to be removed but it may last very long
time, because during replay there are no indexes to make inserting new rows faster.
During restarting the HAF after the crash an error is returned with information about data inconsistency.
To succesfuly restart, the node the switch `--psql-force-open-inconsistent` must be used.
Edited by Marcin