Return reference to keys, don't copy keys
This commit is contained in:
parent
e07ddaa289
commit
6e436b7a59
@ -76,7 +76,7 @@ void BlobOnBlocks::flush() {
|
||||
_datatree->flush();
|
||||
}
|
||||
|
||||
Key BlobOnBlocks::key() const {
|
||||
const Key &BlobOnBlocks::key() const {
|
||||
return _datatree->key();
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,7 @@ public:
|
||||
BlobOnBlocks(cpputils::unique_ref<parallelaccessdatatreestore::DataTreeRef> datatree);
|
||||
virtual ~BlobOnBlocks();
|
||||
|
||||
blockstore::Key key() const override;
|
||||
const blockstore::Key &key() const override;
|
||||
|
||||
uint64_t size() const override;
|
||||
void resize(uint64_t numBytes) override;
|
||||
|
@ -13,7 +13,7 @@ public:
|
||||
virtual ~Blob() {}
|
||||
|
||||
//TODO Use own Key class for blobstore
|
||||
virtual blockstore::Key key() const = 0;
|
||||
virtual const blockstore::Key &key() const = 0;
|
||||
|
||||
virtual uint64_t size() const = 0;
|
||||
virtual void resize(uint64_t numBytes) = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user