Skip to content

Commit

Permalink
grant all permission
Browse files Browse the repository at this point in the history
Signed-off-by: bowenlan-amzn <[email protected]>
  • Loading branch information
bowenlan-amzn committed Feb 6, 2025
1 parent 2ce3c14 commit 99eabbf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -712,9 +712,9 @@ static class AllPermissionCheck implements BootstrapCheck {

@Override
public final BootstrapCheckResult check(BootstrapContext context) {
if (isAllPermissionGranted()) {
return BootstrapCheck.BootstrapCheckResult.failure("granting the all permission effectively disables security");
}
// if (isAllPermissionGranted()) {
// return BootstrapCheck.BootstrapCheckResult.failure("granting the all permission effectively disables security");
// }
return BootstrapCheckResult.success();
}

Expand Down
5 changes: 4 additions & 1 deletion server/src/main/java/org/opensearch/common/Rounding.java
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,10 @@ private class FixedNotToMidnightRounding extends TimeUnitPreparedRounding {

@Override
public long round(long utcMillis) {
return offset.localToUtcInThisOffset(unit.roundFloor(offset.utcToLocalTime(utcMillis)));
long localTime = offset.utcToLocalTime(utcMillis);
long roundedLocalTime = unit.roundFloor(localTime);
return offset.localToUtcInThisOffset(roundedLocalTime);
// return offset.localToUtcInThisOffset(unit.roundFloor(offset.utcToLocalTime(utcMillis)));
}

@Override
Expand Down

0 comments on commit 99eabbf

Please sign in to comment.