Skip to content

Commit f3c254a

Browse files
committed
Revert some refactoring
1 parent 7bdb5a8 commit f3c254a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/protocolPB/OzoneManagerProtocolClientSideTranslatorPB.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ private OMRequest.Builder createOMRequest(Type cmdType) {
311311
*/
312312
private OMResponse submitRequest(OMRequest omRequest)
313313
throws IOException {
314-
OMRequest.Builder builder = OMRequest.newBuilder(omRequest);
314+
OMRequest.Builder builder = OMRequest.newBuilder(omRequest);
315315
// Insert S3 Authentication information for each request.
316316
if (getThreadLocalS3Auth() != null) {
317317
builder.setS3Authentication(
@@ -337,8 +337,10 @@ private OMResponse submitRequest(OMRequest omRequest)
337337
CallerContext.setCurrent(callerContext);
338338
}
339339
}
340-
return transport.submitRequest(
341-
builder.setTraceID(TracingUtil.exportCurrentSpan()).build());
340+
OMResponse response =
341+
transport.submitRequest(
342+
builder.setTraceID(TracingUtil.exportCurrentSpan()).build());
343+
return response;
342344
}
343345

344346
/**

0 commit comments

Comments
 (0)