Skip to content

Commit

Permalink
Spotless check apply fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Suraj Singh <surajrider@gmail.com>
  • Loading branch information
dreamer-89 committed Sep 7, 2022
1 parent bb6db6d commit 8a18787
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1492,12 +1492,11 @@ public static MapperService createMapperService() throws IOException {
* Exposes a translog associated with the given engine for testing purpose.
*/
public static Translog getTranslog(Engine engine) {
// This is a hack for bwc for 2.x, main will use TranslogManager on Engine directly
// This is a hack for bwc with 2.x, main will use TranslogManager on Engine directly
if (engine instanceof NRTReplicationEngine) {
return ((NRTReplicationEngine)(engine)).getTranslog();
return ((NRTReplicationEngine) (engine)).getTranslog();
}
assert engine instanceof InternalEngine
: "only InternalEngines or NRTReplicationEngines have translogs, got: " + engine.getClass();
assert engine instanceof InternalEngine : "only InternalEngines or NRTReplicationEngines have translogs, got: " + engine.getClass();
InternalEngine internalEngine = (InternalEngine) engine;
internalEngine.ensureOpen();
TranslogManager translogManager = internalEngine.translogManager();
Expand Down

0 comments on commit 8a18787

Please sign in to comment.