Fixed some encoding style issues

This commit is contained in:
Clément Rodriguez 2020-03-02 18:21:46 +01:00
parent 491f454b54
commit 3f82059536
3 changed files with 180 additions and 175 deletions

View File

@ -3,14 +3,18 @@
#include <mutex>
#include <memory>
#include <boost/noncopyable.hpp>
#include "PoolWithFailover.h"
#include <mysqlxx/PoolWithFailover.h>
#define MYSQLXX_POOL_WITH_FAILOVER_DEFAULT_START_CONNECTIONS 1
#define MYSQLXX_POOL_WITH_FAILOVER_DEFAULT_MAX_CONNECTIONS 16
#define MYSQLXX_POOL_WITH_FAILOVER_DEFAULT_MAX_TRIES 3
namespace mysqlxx
{
/*
* PoolFactory.h
* This class is a helper singleton to mutualize connections to MySQL.

View File

@ -22,7 +22,7 @@ void Pool::Entry::incrementRefCount()
if (!data)
return;
++(data->ref_count);
if(data->ref_count==1)
if (data->ref_count==1)
mysql_thread_init();
}
@ -30,7 +30,8 @@ void Pool::Entry::decrementRefCount()
{
if (!data)
return;
if (data->ref_count > 0) {
if (data->ref_count > 0)
{
--(data->ref_count);
if (data->ref_count==0)
mysql_thread_end();