fixes
This commit is contained in:
parent
977dd472c1
commit
7ac452d52a
@ -91,8 +91,8 @@ public final class OptimisticRocksDBColumn extends AbstractRocksDBColumn<Optimis
|
|||||||
boolean committedSuccessfully;
|
boolean committedSuccessfully;
|
||||||
int retries = 0;
|
int retries = 0;
|
||||||
ExponentialPageLimits retryTime = null;
|
ExponentialPageLimits retryTime = null;
|
||||||
Buf prevData = null;
|
Buf prevData;
|
||||||
Buf newData = null;
|
Buf newData;
|
||||||
boolean changed;
|
boolean changed;
|
||||||
do {
|
do {
|
||||||
var prevDataArray = tx.getForUpdate(readOptions, cfh, keyArray, true);
|
var prevDataArray = tx.getForUpdate(readOptions, cfh, keyArray, true);
|
||||||
|
@ -59,8 +59,8 @@ public final class PessimisticRocksDBColumn extends AbstractRocksDBColumn<Transa
|
|||||||
}
|
}
|
||||||
try (var txOpts = new TransactionOptions();
|
try (var txOpts = new TransactionOptions();
|
||||||
var tx = beginTransaction(writeOptions, txOpts)) {
|
var tx = beginTransaction(writeOptions, txOpts)) {
|
||||||
Buf prevData = null;
|
Buf prevData;
|
||||||
Buf newData = null;
|
Buf newData;
|
||||||
boolean changed;
|
boolean changed;
|
||||||
if (logger.isTraceEnabled()) {
|
if (logger.isTraceEnabled()) {
|
||||||
logger.trace(MARKER_ROCKSDB, "Reading {} (before update lock)", LLUtils.toStringSafe(key));
|
logger.trace(MARKER_ROCKSDB, "Reading {} (before update lock)", LLUtils.toStringSafe(key));
|
||||||
@ -79,6 +79,7 @@ public final class PessimisticRocksDBColumn extends AbstractRocksDBColumn<Transa
|
|||||||
prevData = Buf.wrap(prevDataArray);
|
prevData = Buf.wrap(prevDataArray);
|
||||||
} else {
|
} else {
|
||||||
readValueNotFoundWithoutBloomBufferSize.record(0);
|
readValueNotFoundWithoutBloomBufferSize.record(0);
|
||||||
|
prevData = null;
|
||||||
}
|
}
|
||||||
if (prevData != null) {
|
if (prevData != null) {
|
||||||
prevData.freeze();
|
prevData.freeze();
|
||||||
|
Loading…
Reference in New Issue
Block a user