diff options
author | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2019-04-15 12:26:26 -0400 |
---|---|---|
committer | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2019-04-16 16:04:16 -0400 |
commit | 6fd5b4d17b87aa652381fd28cefe2a7eb5ec8d5d (patch) | |
tree | d62db04cf056973d8a544484d77c3ad0b1e8604d /src/mongo/db/views | |
parent | 29ef1a415c74c883746325f13a8eaaa1831f8102 (diff) | |
download | mongo-6fd5b4d17b87aa652381fd28cefe2a7eb5ec8d5d.tar.gz |
SERVER-40647 ViewCatalog::iterate should use _reloadIfNeeded rather than _requireValidCatalog
Diffstat (limited to 'src/mongo/db/views')
-rw-r--r-- | src/mongo/db/views/view_catalog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/views/view_catalog.cpp b/src/mongo/db/views/view_catalog.cpp index 23d381e64d3..244d93f6df3 100644 --- a/src/mongo/db/views/view_catalog.cpp +++ b/src/mongo/db/views/view_catalog.cpp @@ -134,7 +134,7 @@ Status ViewCatalog::_reloadIfNeeded(WithLock lk, OperationContext* opCtx) { void ViewCatalog::iterate(OperationContext* opCtx, ViewIteratorCallback callback) { stdx::lock_guard<stdx::mutex> lk(_mutex); - _requireValidCatalog(lk, opCtx); + uassertStatusOK(_reloadIfNeeded(lk, opCtx)); for (auto&& view : _viewMap) { callback(*view.second); } |