Skip to content

Commit

Permalink
fixed replciation port error message
Browse files Browse the repository at this point in the history
  • Loading branch information
tomatolog committed Jan 28, 2025
1 parent 5231df7 commit 88dcef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/replication/configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ bool SetReplicationListener ( const VecTraits_T<ListenerDesc_t> & dListeners, CS
const bool bBadCount = ( tListen.m_iPortsCount<2 );
const bool bBadRange = ( ( tListen.m_iPortsCount%2 )!=0 && ( tListen.m_iPortsCount-1 )<2 );
if ( bBadCount || bBadRange )
sphFatal ( "invalid replication ports count %d, should be at least 2", tListen.m_iPortsCount );
sphFatal ( "invalid replication ports count %d, should be at least 2", tListen.m_iPortsCount+1 );

// can not use 0.0.0.0 due to Galera error at ReplicatorSMM::InitConfig::InitConfig
if ( tListen.m_uIP != 0 )
Expand Down

0 comments on commit 88dcef9

Please sign in to comment.