mirror of https://github.com/ceph/go-ceph
rados: add an error to be used if data is requested too early
Add a new error that will be returned from a op step method if the method is called before the step is ready to provide data - like when the operation has not yet been performed. Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
parent
dffdc11f1f
commit
1d6366f008
|
@ -52,6 +52,9 @@ var (
|
||||||
// ErrInvalidIOContext may be returned if an api call requires an IOContext
|
// ErrInvalidIOContext may be returned if an api call requires an IOContext
|
||||||
// but IOContext is not ready for use.
|
// but IOContext is not ready for use.
|
||||||
ErrInvalidIOContext = errors.New("IOContext is not ready for use")
|
ErrInvalidIOContext = errors.New("IOContext is not ready for use")
|
||||||
|
// ErrOperationIncomplete is returned from write op or read op steps for
|
||||||
|
// which the operation has not been performed yet.
|
||||||
|
ErrOperationIncomplete = errors.New("Operation has not been performed yet")
|
||||||
)
|
)
|
||||||
|
|
||||||
// Public radosErrors:
|
// Public radosErrors:
|
||||||
|
|
Loading…
Reference in New Issue