frostfs-node/pkg/local_object_storage/blobstor/control.go
Leonard Lyubich d8d38d3476 [#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>
2020-12-11 17:19:37 +03:00

24 lines
503 B
Go

package blobstor
// Open opens BlobStor.
func (b *BlobStor) Open() error {
b.log.Debug("opening...")
return nil
}
// Init initializes internal data structures and system resources.
//
// If BlobStor is already initialized, then no action is taken.
func (b *BlobStor) Init() error {
b.log.Debug("initializing...")
return b.blobovniczas.init()
}
// Close releases all internal resources of BlobStor.
func (b *BlobStor) Close() error {
b.log.Debug("closing...")
return b.blobovniczas.close()
}