Skip to content

Commit 8190895

Browse files
author
Jonas Oreland
committed
ndb - bug#40543 ReadCommitted might theoretically read stale data
1 parent 5b00af3 commit 8190895

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

storage/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -3091,13 +3091,13 @@ void Dbtc::tckeyreq050Lab(Signal* signal)
30913091
regTcPtr->tcNodedata[3] = Tdata6;
30923092

30933093
Uint8 Toperation = regTcPtr->operation;
3094-
Uint8 Tdirty = regTcPtr->dirtyOp;
3094+
Uint8 TopSimple = regTcPtr->opSimple;
30953095
tnoOfBackup = tnodeinfo & 3;
30963096
tnoOfStandby = (tnodeinfo >> 8) & 3;
30973097

30983098
regCachePtr->fragmentDistributionKey = (tnodeinfo >> 16) & 255;
30993099
if (Toperation == ZREAD || Toperation == ZREAD_EX) {
3100-
if (Tdirty == 1) {
3100+
if (TopSimple == 1){
31013101
jam();
31023102
/*-------------------------------------------------------------*/
31033103
/* A SIMPLE READ CAN SELECT ANY OF THE PRIMARY AND */

0 commit comments

Comments
 (0)