Since start_wsrep_THD is also used for creating appliers (the slave threads), the fix here would be to not increment that for appliers: wsrep_replication_process(THD*) and also wsrep_rollback_process.
Since start_wsrep_THD is also used for creating appliers (the slave threads), the fix here would be to not increment that for appliers: wsrep_replicati on_process( THD*) and also wsrep_rollback_ process.