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.
@@ -52,6 +52,9 @@ var (
// ErrInvalidIOContext may be returned if an api call requires an IOContext
// but 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:
