At the end of unit test, flush and evict are called.
But, those ops affect manifest object because
cache_mode is not set to NONE sometime.
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
(cherry picked from commit
61b43e93bbb636c4852a304da031497a4c3671e3)
result = -EINVAL;
break;
}
- if (pool.info.cache_mode == pg_pool_t::CACHEMODE_NONE) {
+ if (pool.info.cache_mode == pg_pool_t::CACHEMODE_NONE || obs.oi.has_manifest()) {
result = -EINVAL;
break;
}
result = -EINVAL;
break;
}
- if (pool.info.cache_mode == pg_pool_t::CACHEMODE_NONE) {
+ if (pool.info.cache_mode == pg_pool_t::CACHEMODE_NONE || obs.oi.has_manifest()) {
result = -EINVAL;
break;
}
result = 0;
{
tracepoint(osd, do_osd_op_pre_cache_evict, soid.oid.name.c_str(), soid.snap.val);
- if (pool.info.cache_mode == pg_pool_t::CACHEMODE_NONE) {
+ if (pool.info.cache_mode == pg_pool_t::CACHEMODE_NONE || obs.oi.has_manifest()) {
result = -EINVAL;
break;
}