wallet/db: make Backup() const
This method is the to-disk equivalent of serialize methods which are also const.
This commit is contained in:
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -850,7 +850,7 @@ bool BerkeleyDatabase::Rewrite(const char* pszSkip)
|
|||||||
return BerkeleyBatch::Rewrite(*this, pszSkip);
|
return BerkeleyBatch::Rewrite(*this, pszSkip);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool BerkeleyDatabase::Backup(const std::string& strDest)
|
bool BerkeleyDatabase::Backup(const std::string& strDest) const
|
||||||
{
|
{
|
||||||
if (IsDummy()) {
|
if (IsDummy()) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
+1
-1
@@ -157,7 +157,7 @@ public:
|
|||||||
|
|
||||||
/** Back up the entire database to a file.
|
/** Back up the entire database to a file.
|
||||||
*/
|
*/
|
||||||
bool Backup(const std::string& strDest);
|
bool Backup(const std::string& strDest) const;
|
||||||
|
|
||||||
/** Make sure all changes are flushed to disk.
|
/** Make sure all changes are flushed to disk.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in new issue
Block a user