forked from TrueCloudLab/frostfs-node
b9a2055e1c
This check should occur on the shard level, but because blobstor components expose `Open(readOnly bool)` interface, it is reasonable to expect an error here. Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
7 lines
191 B
Go
7 lines
191 B
Go
package common
|
|
|
|
import "errors"
|
|
|
|
// ErrReadOnly MUST be returned for modifying operations when the storage was opened
|
|
// in readonly mode.
|
|
var ErrReadOnly = errors.New("opened as read-only")
|