summaryrefslogtreecommitdiffstats
path: root/src/mds/Mutation.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/mds/Mutation.cc')
-rw-r--r--src/mds/Mutation.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mds/Mutation.cc b/src/mds/Mutation.cc
index 3235597e950..cb711843b02 100644
--- a/src/mds/Mutation.cc
+++ b/src/mds/Mutation.cc
@@ -194,17 +194,17 @@ MDRequestImpl::More* MDRequestImpl::more()
bool MDRequestImpl::has_more()
{
- return _more;
+ return _more != nullptr;
}
bool MDRequestImpl::has_witnesses()
{
- return _more && !_more->witnessed.empty();
+ return (_more != nullptr) && (!_more->witnessed.empty());
}
bool MDRequestImpl::slave_did_prepare()
{
- return more()->slave_commit;
+ return has_more() && more()->slave_commit;
}
bool MDRequestImpl::did_ino_allocation()