mirror of
https://github.com/apache/arrow.git
synced 2026-10-29 17:15:39 +08:00
make format
This commit is contained in:
1 parent
040216d489
commit
a66f999f85
2 files changed
+10
-10
No files matched your search
@@ -791,12 +791,12 @@ Status PlasmaClient::Impl::Seal(const ObjectID& object_id) {
|
||||
auto object_entry = objects_in_use_.find(object_id);
|
||||
|
||||
if (object_entry == objects_in_use_.end()) {
|
||||
return MakePlasmaError(PlasmaErrorCode::PlasmaObjectNonexistent,"Seal() called on an object without a reference to it"
|
||||
);
|
||||
return MakePlasmaError(PlasmaErrorCode::PlasmaObjectNonexistent,
|
||||
"Seal() called on an object without a reference to it");
|
||||
}
|
||||
if (object_entry->second->is_sealed) {
|
||||
return MakePlasmaError(PlasmaErrorCode::PlasmaObjectAlreadySealed,"Seal() called on an already sealed object"
|
||||
);
|
||||
return MakePlasmaError(PlasmaErrorCode::PlasmaObjectAlreadySealed,
|
||||
"Seal() called on an already sealed object");
|
||||
}
|
||||
|
||||
object_entry->second->is_sealed = true;
|
||||
|
||||
@@ -86,14 +86,14 @@ Status PlasmaErrorStatus(fb::PlasmaError plasma_error) {
|
||||
case fb::PlasmaError::OK:
|
||||
return Status::OK();
|
||||
case fb::PlasmaError::ObjectExists:
|
||||
return MakePlasmaError(PlasmaErrorCode::PlasmaObjectExists, "object already exists in the plasma store"
|
||||
);
|
||||
return MakePlasmaError(PlasmaErrorCode::PlasmaObjectExists,
|
||||
"object already exists in the plasma store");
|
||||
case fb::PlasmaError::ObjectNonexistent:
|
||||
return MakePlasmaError(PlasmaErrorCode::PlasmaObjectNonexistent, "object does not exist in the plasma store",
|
||||
);
|
||||
return MakePlasmaError(PlasmaErrorCode::PlasmaObjectNonexistent,
|
||||
"object does not exist in the plasma store");
|
||||
case fb::PlasmaError::OutOfMemory:
|
||||
return MakePlasmaError(PlasmaErrorCode::PlasmaStoreFull, "object does not fit in the plasma store",
|
||||
);
|
||||
return MakePlasmaError(PlasmaErrorCode::PlasmaStoreFull,
|
||||
"object does not fit in the plasma store");
|
||||
default:
|
||||
ARROW_LOG(FATAL) << "unknown plasma error code " << static_cast<int>(plasma_error);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user