summaryrefslogtreecommitdiff
path: root/project2/rdbmsDataSource.h
diff options
context:
space:
mode:
Diffstat (limited to 'project2/rdbmsDataSource.h')
-rw-r--r--project2/rdbmsDataSource.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/project2/rdbmsDataSource.h b/project2/rdbmsDataSource.h
index 57a607f..a9dad6c 100644
--- a/project2/rdbmsDataSource.h
+++ b/project2/rdbmsDataSource.h
@@ -12,6 +12,7 @@ class _RdbmsDataSource : public _DataSource {
typedef boost::shared_ptr<ODBC::Connection> ConnectionPtr;
typedef std::map<std::string, std::string> ReadonlyDSNs; // Map hostname to DSN string
typedef std::map<std::string, ConnectionPtr> DBHosts; // Map DSN strings to connections
+ typedef std::map<std::string, const ODBC::ConnectionError> FailedHosts; // Map DSN strings to failures
_RdbmsDataSource(const xmlpp::Element * p);
ODBC::Connection & getReadonly() const;
ODBC::Connection & getWritable() const;
@@ -28,6 +29,7 @@ class _RdbmsDataSource : public _DataSource {
private:
mutable std::string localhost;
static DBHosts dbhosts;
+ static FailedHosts failedhosts;
};
typedef boost::shared_ptr<_RdbmsDataSource> RdbmsDataSource;
typedef std::map<std::string, RdbmsDataSource> RdbmsDataSources;