Skip to content

Commit 0a07d28

Browse files
committed
Merge branch 'master' into 1.0.0.M5
2 parents e056ea4 + 201eca2 commit 0a07d28

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

ddal-sequence/src/main/java/org/hellojavaer/ddal/sequence/DatabaseSequenceRangeGetter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import java.util.ConcurrentModificationException;
2828

2929
/**
30-
* <p>Id Range</p>
30+
* <p>Sequence Range</p>
3131
*
3232
* Design model:
3333
*
@@ -56,8 +56,8 @@
5656
* | [id] [id] [id] [id] [id] [id]
5757
* _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
5858
*
59-
* Between master and client,there can be multiple followers. Id Range is firstly allocated by master.
60-
* The lower layer request id range to the higher layer and then allocate id range to its lower.
59+
* Between master and client,there can be multiple followers. Sequence range is firstly allocated by master.
60+
* The lower layer request sequence range to the higher layer and then allocate sequence range to its lower.
6161
*
6262
* @author <a href="mailto:[email protected]">Kaiming Zou</a>,created on 04/01/2017.
6363
*/
@@ -278,7 +278,7 @@ public SequenceRange get(String schemaName, String tableName, int step) throws E
278278
}
279279
if (deleted == 1) {
280280
if (logger.isInfoEnabled()) {
281-
logger.info("Id range for schemaName:{},tableName:{} is used up. More detail information is step:{},"
281+
logger.info("Sequence range for schemaName:{},tableName:{} is used up. More detail information is step:{},"
282282
+ "endValue:{},version:{},id:{} and actually allocated range is '{} ~ {}'",
283283
schemaName, tableName, step,//
284284
endValue, version, id, rangeBegin, rangeEnd);

ddal-sequence/src/main/java/org/hellojavaer/ddal/sequence/SequenceCache.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ public void run() {
8989
try {
9090
SequenceRange range = getSequenceRange();
9191
if (range == null) {
92-
throw new NoAvailableSequenceRangeFoundException("No available id range was found");
92+
throw new NoAvailableSequenceRangeFoundException("No available sequence range was found");
9393
}
9494
if (range.getBeginValue() > range.getEndValue()) {
95-
throw new IllegalSequenceRangeException("Illegal id range " + range);
95+
throw new IllegalSequenceRangeException("Illegal sequence range " + range);
9696
}
9797
int c = (int) ((range.getEndValue() - range.getBeginValue() + step) / step);
9898
long beginValue = range.getBeginValue();

0 commit comments

Comments
 (0)