BlobStore uses synchronized access to its BlockStore
This commit is contained in:
parent
92bec0afb2
commit
deb1a2462a
@ -3,6 +3,7 @@
|
|||||||
#include "datatreestore/DataTreeStore.h"
|
#include "datatreestore/DataTreeStore.h"
|
||||||
#include "datatreestore/DataTree.h"
|
#include "datatreestore/DataTree.h"
|
||||||
#include "BlobStoreOnBlocks.h"
|
#include "BlobStoreOnBlocks.h"
|
||||||
|
#include <messmer/blockstore/implementations/synchronized/SynchronizedBlockStore.h>
|
||||||
|
|
||||||
#include "BlobOnBlocks.h"
|
#include "BlobOnBlocks.h"
|
||||||
#include <messmer/cpp-utils/pointer.h>
|
#include <messmer/cpp-utils/pointer.h>
|
||||||
@ -11,6 +12,7 @@ using std::unique_ptr;
|
|||||||
using std::make_unique;
|
using std::make_unique;
|
||||||
|
|
||||||
using blockstore::BlockStore;
|
using blockstore::BlockStore;
|
||||||
|
using blockstore::synchronized::SynchronizedBlockStore;
|
||||||
using blockstore::Key;
|
using blockstore::Key;
|
||||||
using cpputils::dynamic_pointer_move;
|
using cpputils::dynamic_pointer_move;
|
||||||
|
|
||||||
@ -21,7 +23,7 @@ using datanodestore::DataNodeStore;
|
|||||||
using datatreestore::DataTreeStore;
|
using datatreestore::DataTreeStore;
|
||||||
|
|
||||||
BlobStoreOnBlocks::BlobStoreOnBlocks(unique_ptr<BlockStore> blockStore, uint32_t blocksizeBytes)
|
BlobStoreOnBlocks::BlobStoreOnBlocks(unique_ptr<BlockStore> blockStore, uint32_t blocksizeBytes)
|
||||||
: _dataTreeStore(make_unique<DataTreeStore>(make_unique<DataNodeStore>(std::move(blockStore), blocksizeBytes))) {
|
: _dataTreeStore(make_unique<DataTreeStore>(make_unique<DataNodeStore>(make_unique<SynchronizedBlockStore>(std::move(blockStore)), blocksizeBytes))) {
|
||||||
}
|
}
|
||||||
|
|
||||||
BlobStoreOnBlocks::~BlobStoreOnBlocks() {
|
BlobStoreOnBlocks::~BlobStoreOnBlocks() {
|
||||||
|
Loading…
Reference in New Issue
Block a user