[#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:
Leonard Lyubich 2020-11-30 17:16:11 +03:00 committed by Alex Vanin
parent 51ab6991d2
commit d8d38d3476
2 changed files with 28 additions and 1 deletions

View file

@ -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),
}
}