aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/server/document_meta_store_read_guards.cpp
blob: b31f9ea07cf5bd0095ca256ac88a8ea1775be1f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "document_meta_store_read_guards.h"
#include "documentsubdbcollection.h"
#include "idocumentsubdb.h"

namespace proton {

DocumentMetaStoreReadGuards::DocumentMetaStoreReadGuards(const DocumentSubDBCollection &subDBs)
    : readydms(subDBs.getReadySubDB()->getDocumentMetaStoreContext().getReadGuard()),
      notreadydms(subDBs.getNotReadySubDB()->getDocumentMetaStoreContext().getReadGuard()),
      remdms(subDBs.getRemSubDB()->getDocumentMetaStoreContext().getReadGuard())
{ }

DocumentMetaStoreReadGuards::~DocumentMetaStoreReadGuards() = default;

}