mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 20:03:34 -03:00
wallet/db: make Backup() const
This method is the to-disk equivalent of serialize methods which are also const.
This commit is contained in:
parent
8cd0b86340
commit
d366795d18
2 changed files with 2 additions and 2 deletions
|
@ -850,7 +850,7 @@ bool BerkeleyDatabase::Rewrite(const char* pszSkip)
|
|||
return BerkeleyBatch::Rewrite(*this, pszSkip);
|
||||
}
|
||||
|
||||
bool BerkeleyDatabase::Backup(const std::string& strDest)
|
||||
bool BerkeleyDatabase::Backup(const std::string& strDest) const
|
||||
{
|
||||
if (IsDummy()) {
|
||||
return false;
|
||||
|
|
|
@ -157,7 +157,7 @@ public:
|
|||
|
||||
/** 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.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue