Skip to content

Commit

Permalink
make format
Browse files Browse the repository at this point in the history
  • Loading branch information
emkornfield committed Jul 3, 2019
1 parent 040216d commit a66f999
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions cpp/src/plasma/client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
12 changes: 6 additions & 6 deletions cpp/src/plasma/protocol.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a66f999

Please sign in to comment.