Skip to content

Commit

Permalink
MB-39745: Make various KVStore functions const
Browse files Browse the repository at this point in the history
Change-Id: I5d072f3981888e34e7dd69f312aa80e47d32825f
Reviewed-on: http://review.couchbase.org/c/kv_engine/+/156206
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
  • Loading branch information
BenHuddleston authored and daverigby committed Jun 22, 2021
1 parent 632fbef commit 80e322f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion engines/ep/src/kvstore.cc
Expand Up @@ -323,7 +323,7 @@ bool KVStore::snapshotStats(const nlohmann::json& stats) {
return rv;
}

nlohmann::json KVStore::getPersistedStats() {
nlohmann::json KVStore::getPersistedStats() const {
std::string dbname = getConfig().getDBName();
const auto fname = cb::io::sanitizePath(dbname + "/stats.json");
if (!cb::io::isFile(fname)) {
Expand Down
4 changes: 2 additions & 2 deletions engines/ep/src/kvstore.h
Expand Up @@ -687,7 +687,7 @@ class KVStore {
st.reset();
}

size_t getMemFootPrint() {
size_t getMemFootPrint() const {
return st.getMemFootPrint();
}

Expand Down Expand Up @@ -841,7 +841,7 @@ class KVStore {
* session is stored. If the function fails and empty nlohmann::json will be
* returned
*/
nlohmann::json getPersistedStats();
nlohmann::json getPersistedStats() const;

/**
* Persist a snapshot of a collection of stats.
Expand Down

0 comments on commit 80e322f

Please sign in to comment.