aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vrátil <[email protected]>2017-11-26 15:53:32 +0100
committerDaniel Vrátil <[email protected]>2017-11-26 15:53:34 +0100
commit7488a6412c46fe9f1c77af2a707959b55485aa3a (patch)
tree9183255c969bf01e14307e122a5434724ac8dc71
parent29697b4dde5a51d2b2bcc25908cc8ba10e057ab0 (diff)
Further extend the non-empty ItemFetchScope case
As explained in 2c47b728, IFS must not be considered empty if it has any custom settings. This change extends the previous commit to check all properties for non-default values.
-rw-r--r--src/core/itemfetchscope.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/itemfetchscope.cpp b/src/core/itemfetchscope.cpp
index 35e9ef4..ce03bad 100644
--- a/src/core/itemfetchscope.cpp
+++ b/src/core/itemfetchscope.cpp
@@ -101,8 +101,15 @@ bool ItemFetchScope::isEmpty() const
&& d->mAttributes.isEmpty()
&& !d->mFullPayload
&& !d->mAllAttributes
+ && !d->mCacheOnly
+ && !d->mCheckCachedPayloadPartsOnly
+ && d->mFetchMtime // true by deafult -> false = non-empty
+ && !d->mIgnoreRetrievalErrors
+ && d->mFetchRid // true by default
+ && !d->mFetchGid
&& !d->mFetchTags
&& !d->mFetchVRefs
+ && !d->mFetchRelations
&& d->mAncestorDepth == AncestorRetrieval::None;
}