mds/SnapServer: add const to member function

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
This commit is contained in:
Michal Jarzabek 2016-10-29 21:52:10 +01:00
parent 5354e7c26f
commit 2eb96d5718
2 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@ void SnapServer::_prepare(bufferlist &bl, uint64_t reqid, mds_rank_t bymds)
//dump();
}
bool SnapServer::_is_prepared(version_t tid)
bool SnapServer::_is_prepared(version_t tid) const
{
return
pending_update.count(tid) ||

View File

@ -81,7 +81,7 @@ public:
// server bits
void _prepare(bufferlist &bl, uint64_t reqid, mds_rank_t bymds) override;
bool _is_prepared(version_t tid);
bool _is_prepared(version_t tid) const;
bool _commit(version_t tid, MMDSTableRequest *req=NULL) override;
void _rollback(version_t tid) override;
void _server_update(bufferlist& bl) override;