]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/store/postgresql/postgresql_store.h
TEST_SETTINGS_LOCAL moved outside the namespace, more assertions added
[stg.git] / projects / stargazer / plugins / store / postgresql / postgresql_store.h
index ba738bc067d3000dcfa2cb2ebc77bf052c4ae714..8169137e4d6776de2394ce66266d443dcb047ab1 100644 (file)
@@ -35,7 +35,7 @@
 #include <vector>
 #include <map>
 
-#include "store.h"
+#include "stg/store.h"
 
 // Minimal DB version is 5
 // Recommended DB version is 6 (support FreeMb logging on disconnects)
@@ -72,7 +72,7 @@ public:
                             double cash,
                             double freeMb,
                             const std::string & reason) const;
-    int WriteDetailedStat(const std::map<IP_DIR_PAIR, STAT_NODE> & statTree,
+    int WriteDetailedStat(const TRAFF_STAT & statTree,
                           time_t lastStat,
                           const std::string & login) const;
 
@@ -152,6 +152,7 @@ private:
     MODULE_SETTINGS settings;
     mutable pthread_mutex_t mutex;
     mutable int version;
+    int retries;
 
     PGconn * connection;
 };