提交 7c7ba8f2 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Fix spelling and formatting

上级 8492378c
...@@ -29,7 +29,7 @@ Change Log ...@@ -29,7 +29,7 @@ Change Log
</li> </li>
<li>Issue #1632: TestMVTableEngine failure <li>Issue #1632: TestMVTableEngine failure
</li> </li>
<li>PR #1631: Prepere to release: javadoc cleanup <li>PR #1631: Prepare to release: javadoc cleanup
</li> </li>
<li>PR #1630: fix duplicate words typos in comments and javadoc <li>PR #1630: fix duplicate words typos in comments and javadoc
</li> </li>
......
...@@ -37,7 +37,7 @@ adminTranslateStart=Translate ...@@ -37,7 +37,7 @@ adminTranslateStart=Translate
helpAction=Action helpAction=Action
helpAddAnotherRow=Add another row helpAddAnotherRow=Add another row
helpAddDrivers=Adding Database Drivers helpAddDrivers=Adding Database Drivers
helpAddDriversText=Additional database drivers can be registered by adding the Jar file location of the driver to the the environment variables H2DRIVERS or CLASSPATH. Example (Windows): to add the database driver library C:/Programs/hsqldb/lib/hsqldb.jar, set the environment variable H2DRIVERS to C:/Programs/hsqldb/lib/hsqldb.jar. helpAddDriversText=Additional database drivers can be registered by adding the Jar file location of the driver to the environment variables H2DRIVERS or CLASSPATH. Example (Windows): to add the database driver library C:/Programs/hsqldb/lib/hsqldb.jar, set the environment variable H2DRIVERS to C:/Programs/hsqldb/lib/hsqldb.jar.
helpAddRow=Add a new row helpAddRow=Add a new row
helpCommandHistory=Shows the Command History helpCommandHistory=Shows the Command History
helpCreateTable=Create a new table helpCreateTable=Create a new table
......
...@@ -1297,7 +1297,8 @@ public class MVMap<K, V> extends AbstractMap<K, V> ...@@ -1297,7 +1297,8 @@ public class MVMap<K, V> extends AbstractMap<K, V>
} }
p = replacePage(pos, p, unsavedMemoryHolder); p = replacePage(pos, p, unsavedMemoryHolder);
RootReference updatedRootReference = new RootReference(rootReference, p, remainingBuffer, lockedForUpdate); RootReference updatedRootReference = new RootReference(rootReference, p, remainingBuffer,
lockedForUpdate);
if (root.compareAndSet(rootReference, updatedRootReference)) { if (root.compareAndSet(rootReference, updatedRootReference)) {
lockedRootReference = null; lockedRootReference = null;
while (tip != null) { while (tip != null) {
...@@ -1422,7 +1423,8 @@ public class MVMap<K, V> extends AbstractMap<K, V> ...@@ -1422,7 +1423,8 @@ public class MVMap<K, V> extends AbstractMap<K, V>
*/ */
public final byte appendCounter; public final byte appendCounter;
RootReference(Page root, long version, RootReference previous, int appendCounter, long updateCounter, long updateAttemptCounter) { RootReference(Page root, long version, RootReference previous, int appendCounter, long updateCounter,
long updateAttemptCounter) {
this.root = root; this.root = root;
this.version = version; this.version = version;
this.previous = previous; this.previous = previous;
......
...@@ -1038,7 +1038,7 @@ public abstract class Page implements Cloneable ...@@ -1038,7 +1038,7 @@ public abstract class Page implements Cloneable
} }
@Override @Override
public void expand(int keyCount, Object[] extraKys, Object[] extraValues) { public void expand(int keyCount, Object[] extraKeys, Object[] extraValues) {
throw new UnsupportedOperationException(); throw new UnsupportedOperationException();
} }
......
...@@ -178,7 +178,8 @@ public class TransactionMap<K, V> extends AbstractMap<K, V> { ...@@ -178,7 +178,8 @@ public class TransactionMap<K, V> extends AbstractMap<K, V> {
int txId = TransactionStore.getTransactionId(operationId); int txId = TransactionStore.getTransactionId(operationId);
boolean isVisible = txId == transaction.transactionId || boolean isVisible = txId == transaction.transactionId ||
committingTransactions.get(txId); committingTransactions.get(txId);
Object v = isVisible ? currentValue.getCurrentValue() : currentValue.getCommittedValue(); Object v = isVisible ? currentValue.getCurrentValue()
: currentValue.getCommittedValue();
if (v == null) { if (v == null) {
--size; --size;
} }
...@@ -242,7 +243,7 @@ public class TransactionMap<K, V> extends AbstractMap<K, V> { ...@@ -242,7 +243,7 @@ public class TransactionMap<K, V> extends AbstractMap<K, V> {
} }
/** /**
* Appends entry to uderlying map. This method may be used concurrently, * Appends entry to underlying map. This method may be used concurrently,
* but latest appended values are not guaranteed to be visible. * but latest appended values are not guaranteed to be visible.
* @param key should be higher in map's order than any existing key * @param key should be higher in map's order than any existing key
* @param value to be appended * @param value to be appended
...@@ -313,7 +314,8 @@ public class TransactionMap<K, V> extends AbstractMap<K, V> { ...@@ -313,7 +314,8 @@ public class TransactionMap<K, V> extends AbstractMap<K, V> {
return res; return res;
} }
decisionMaker.reset(); decisionMaker.reset();
} while (blockingTransaction.sequenceNum > sequenceNumWhenStarted || transaction.waitFor(blockingTransaction, map, key)); } while (blockingTransaction.sequenceNum > sequenceNumWhenStarted
|| transaction.waitFor(blockingTransaction, map, key));
throw DataUtils.newIllegalStateException(DataUtils.ERROR_TRANSACTION_LOCKED, throw DataUtils.newIllegalStateException(DataUtils.ERROR_TRANSACTION_LOCKED,
"Map entry <{0}> with key <{1}> and value {2} is locked by tx {3} and can not be updated by tx {4}" "Map entry <{0}> with key <{1}> and value {2} is locked by tx {3} and can not be updated by tx {4}"
...@@ -719,7 +721,8 @@ public class TransactionMap<K, V> extends AbstractMap<K, V> { ...@@ -719,7 +721,8 @@ public class TransactionMap<K, V> extends AbstractMap<K, V> {
// current value comes from another uncommitted transaction // current value comes from another uncommitted transaction
// take committed value instead // take committed value instead
Object committedValue = data.getCommittedValue(); Object committedValue = data.getCommittedValue();
data = committedValue == null ? null : VersionedValueCommitted.getInstance(committedValue); data = committedValue == null ? null
: VersionedValueCommitted.getInstance(committedValue);
} }
} }
} }
......
...@@ -48,7 +48,8 @@ abstract class TxDecisionMaker extends MVMap.DecisionMaker<VersionedValue> { ...@@ -48,7 +48,8 @@ abstract class TxDecisionMaker extends MVMap.DecisionMaker<VersionedValue> {
// We assume that we are looking at the final value for this transaction, // We assume that we are looking at the final value for this transaction,
// and if it's not the case, then it will fail later, // and if it's not the case, then it will fail later,
// because a tree root has definitely been changed. // because a tree root has definitely been changed.
logIt(existingValue.getCurrentValue() == null ? null : VersionedValueCommitted.getInstance(existingValue.getCurrentValue())); logIt(existingValue.getCurrentValue() == null ? null
: VersionedValueCommitted.getInstance(existingValue.getCurrentValue()));
decision = MVMap.Decision.PUT; decision = MVMap.Decision.PUT;
} else if (getBlockingTransaction() != null) { } else if (getBlockingTransaction() != null) {
// this entry comes from a different transaction, and this // this entry comes from a different transaction, and this
......
...@@ -178,7 +178,7 @@ public class TestDateStorage extends TestDb { ...@@ -178,7 +178,7 @@ public class TestDateStorage extends TestDb {
*/ */
if (tz.getID().startsWith("SystemV/")) { if (tz.getID().startsWith("SystemV/")) {
if (tz.getDSTSavings() < 0) { if (tz.getDSTSavings() < 0) {
continue; continue;
} }
} }
// println(tz.getID()); // println(tz.getID());
......
...@@ -805,4 +805,4 @@ queryparser tokenized freeze factorings recompilation unenclosed rfe dsync ...@@ -805,4 +805,4 @@ queryparser tokenized freeze factorings recompilation unenclosed rfe dsync
econd irst bcef ordinality nord unnest econd irst bcef ordinality nord unnest
analyst occupation distributive josaph aor engineer sajeewa isuru randil kevin doctor businessman artist ashan analyst occupation distributive josaph aor engineer sajeewa isuru randil kevin doctor businessman artist ashan
corrupts splitted disruption unintentional octets preconditions predicates subq objectweb insn opcodes corrupts splitted disruption unintentional octets preconditions predicates subq objectweb insn opcodes
preserves preserves masking holder unboxing avert iae
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论