Skip to content

Commit 421f2f6

Browse files
committed
[Enhancement] StatusOr init with Status::OK for lower overhead
Signed-off-by: yan zhang <[email protected]>
1 parent 39bc4ea commit 421f2f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

be/src/common/statusor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ bool operator!=(const StatusOr<T>& lhs, const StatusOr<T>& rhs) {
577577

578578
// TODO(sbenza): avoid the string here completely.
579579
template <typename T>
580-
StatusOr<T>::StatusOr() : Base(Status::Unknown("")) {}
580+
StatusOr<T>::StatusOr() : Base(Status::OK()) {}
581581

582582
template <typename T>
583583
template <typename U>

0 commit comments

Comments
 (0)