Skip to content

Commit

Permalink
Fix request range creation bug for ssnv2
Browse files Browse the repository at this point in the history
In some condition a new request range was created at every range update
task. The error was generated by a wrong method name which was creating
error in reading the existing next range
  • Loading branch information
fmarco76 committed Jan 28, 2025
1 parent cb70541 commit c85a3ce
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,15 @@ protected void initLegacy2Generator() throws EBaseException {
mMaxSerialNo = dbConfig.getBigInteger(DatabaseConfig.MAX_REQUEST_NUMBER, null);
logger.debug("RequestRepository: - max serial: " + mMaxSerialNo);

String nextMinSerial = dbConfig.getNextBeginSerialNumber();
String nextMinSerial = dbConfig.getNextBeginRequestNumber();
if (nextMinSerial == null || nextMinSerial.equals("-1")) {
mNextMinSerialNo = null;
} else {
mNextMinSerialNo = dbConfig.getBigInteger(DatabaseConfig.NEXT_MIN_REQUEST_NUMBER, null);
}
logger.debug("RequestRepository: - next min serial: " + mNextMinSerialNo);

String nextMaxSerial = dbConfig.getNextEndSerialNumber();
String nextMaxSerial = dbConfig.getNextEndRequestNumber();
if (nextMaxSerial == null || nextMaxSerial.equals("-1")) {
mNextMaxSerialNo = null;
} else {
Expand Down

0 comments on commit c85a3ce

Please sign in to comment.