File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -781,7 +781,22 @@ namespace
781781 const FB_UINT64 db_sequence = target->initReplica ();
782782 const FB_UINT64 last_db_sequence = control.getDbSequence ();
783783
784- if (db_sequence != last_db_sequence)
784+ if (db_sequence < last_db_sequence)
785+ {
786+ if (db_sequence)
787+ {
788+ raiseError (" Replica database was replaced but found to be older (sequence = %" UQUADFORMAT " ) "
789+ " than the one priorly processed (sequence = %" UQUADFORMAT " )" ,
790+ db_sequence, last_db_sequence);
791+ }
792+ else
793+ {
794+ raiseError (" Replica database was replaced but found to have zero sequence number,"
795+ " \n\t probably after improper fixup/restore process (e.g. without -seq[uence] switch)" );
796+ }
797+ }
798+
799+ if (db_sequence > last_db_sequence)
785800 {
786801 if (sequence == db_sequence + 1 )
787802 {
You can’t perform that action at this time.
0 commit comments