forked from TrueCloudLab/frostfs-node
[#220] blobstor: Add blobovnicza tree structure to BlobStor
Add blobovnicza instance to BlobStor structure. Create blobovnicza tree in BlobStor constructor. Implement Open/Init/Close methods. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
51ab6991d2
commit
d8d38d3476
2 changed files with 28 additions and 1 deletions
|
@ -13,6 +13,8 @@ import (
|
|||
// BlobStor represents NeoFS local BLOB storage.
|
||||
type BlobStor struct {
|
||||
*cfg
|
||||
|
||||
blobovniczas *blobovniczas
|
||||
}
|
||||
|
||||
// Option represents BlobStor's constructor option.
|
||||
|
@ -79,7 +81,8 @@ func New(opts ...Option) *BlobStor {
|
|||
}
|
||||
|
||||
return &BlobStor{
|
||||
cfg: c,
|
||||
cfg: c,
|
||||
blobovniczas: newBlobovniczaTree(c),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue