pub struct BlockManager {
    pub replication: TableShardedReplication,
    pub data_dir: PathBuf,
    /* private fields */
}
Expand description

The block manager, handling block exchange between nodes, and block storage on local node

Fields

replication: TableShardedReplication

Replication strategy, allowing to find on which node blocks should be located

data_dir: PathBuf

Directory in which block are stored

Implementations

Ask nodes that might have a block for it

Send block to nodes that should have it

Launch the repair procedure on the data store

This will list all blocks locally present, as well as those that are required because of refcount > 0, and will try to fix any mismatch between the two.

Verify integrity of each block on disk. Use speed_limit to limit the load generated by this function.

Get lenght of resync queue

Get number of blocks that have an error

Get number of items in the refcount table

Increment the number of time a block is used, putting it to resynchronization if it is required, but not known

Decrement the number of time a block is used

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more

Attaches the current Context to this type, returning a WithContext wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more