Skip to content

Commit

Permalink
Foveo
Browse files Browse the repository at this point in the history
  • Loading branch information
burmanm authored and emerkle826 committed Oct 13, 2023
1 parent 763c35f commit 3182d1d
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,9 @@ public Response garbageCollect(
if (StringUtils.isBlank(keyspaceName)) {
keyspaceName = "ALL";
} else if (!keyspaceExists(keyspaceName)) {
return Response.status(HttpStatus.SC_BAD_REQUEST)
.entity("keyspace " + keyspaceName + " does not exists")
.build();
return Response.status(HttpStatus.SC_BAD_REQUEST)
.entity("keyspace " + keyspaceName + " does not exists")
.build();
}

String tombstoneOption = tombstoneOptionStr;
Expand Down Expand Up @@ -397,10 +397,10 @@ public Response garbageCollect(
responseCode = "400",
description = "Invalid flush request",
content =
@Content(
mediaType = MediaType.TEXT_PLAIN,
schema = @Schema(implementation = String.class),
examples = @ExampleObject(value = "keyspace sys-tem does not exists")))
@Content(
mediaType = MediaType.TEXT_PLAIN,
schema = @Schema(implementation = String.class),
examples = @ExampleObject(value = "keyspace sys-tem does not exists")))
@Operation(summary = "Flush one or more tables", operationId = "flush")
public Response flush(KeyspaceRequest keyspaceRequest) {
return handle(
Expand All @@ -414,9 +414,9 @@ public Response flush(KeyspaceRequest keyspaceRequest) {
if (StringUtils.isBlank(keyspaceName)) {
keyspaceName = "ALL";
} else if (!keyspaceExists(keyspaceName)) {
return Response.status(HttpStatus.SC_BAD_REQUEST)
.entity("keyspace " + keyspaceName + " does not exists")
.build();
return Response.status(HttpStatus.SC_BAD_REQUEST)
.entity("keyspace " + keyspaceName + " does not exists")
.build();
}

return Response.accepted(
Expand Down

0 comments on commit 3182d1d

Please sign in to comment.