From c74bae0fdf211551e5a45d1b6bbc766d91381ad9 Mon Sep 17 00:00:00 2001 From: Philip Kaufmann Date: Fri, 9 Nov 2012 22:51:40 +0100 Subject: simplify CDBEnv::Open() / fix small glitches - remove pathEnv from CDBEnv, as this attribute is not needed - change path parameter in ::Open() to a reference - make nDbCache variable an unsigned integer - remove a missplaced ";" behin ::IsMock() --- src/db.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/db.h') diff --git a/src/db.h b/src/db.h index 9cfbf4fd6f..0bcece7803 100644 --- a/src/db.h +++ b/src/db.h @@ -33,7 +33,6 @@ class CDBEnv private: bool fDbEnvInit; bool fMockDb; - boost::filesystem::path pathEnv; void EnvShutdown(); @@ -46,7 +45,7 @@ public: CDBEnv(); ~CDBEnv(); void MakeMock(); - bool IsMock() { return fMockDb; }; + bool IsMock() { return fMockDb; } /* * Verify that database file strFile is OK. If it is not, @@ -66,7 +65,7 @@ public: typedef std::pair, std::vector > KeyValPair; bool Salvage(std::string strFile, bool fAggressive, std::vector& vResult); - bool Open(boost::filesystem::path pathEnv_); + bool Open(const boost::filesystem::path &path); void Close(); void Flush(bool fShutdown); void CheckpointLSN(std::string strFile); -- cgit v1.2.3