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:
John Mulligan 2020-06-25 17:23:19 -04:00 committed by mergify[bot]
parent dffdc11f1f
commit 1d6366f008
1 changed files with 3 additions and 0 deletions

View File

@ -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: