return NT_STATUS_RETRY;
}
- /* Only do this on non-chained and non-chaining reads not using the
- * write cache. */
- if (req_is_in_chain(smbreq) || (lp_write_cache_size(SNUM(conn)) != 0)) {
+ /* Only do this on non-chained and non-chaining reads */
+ if (req_is_in_chain(smbreq)) {
return NT_STATUS_RETRY;
}
return NT_STATUS_RETRY;
}
- /* Only do this on non-chained and non-chaining writes not using the
- * write cache. */
- if (req_is_in_chain(smbreq) || (lp_write_cache_size(SNUM(conn)) != 0)) {
+ /* Only do this on non-chained and non-chaining writes */
+ if (req_is_in_chain(smbreq)) {
return NT_STATUS_RETRY;
}
return NT_STATUS_RETRY;
}
- /* Only do this on reads not using the write cache. */
- if (lp_write_cache_size(SNUM(conn)) != 0) {
- return NT_STATUS_RETRY;
- }
-
if (smbd_smb2_is_compound(smbreq->smb2req)) {
return NT_STATUS_RETRY;
}
return NT_STATUS_RETRY;
}
- /* Only do this on writes not using the write cache. */
- if (lp_write_cache_size(SNUM(conn)) != 0) {
- return NT_STATUS_RETRY;
- }
-
if (smbd_smb2_is_compound(smbreq->smb2req)) {
return NT_STATUS_RETRY;
}