mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Fix MDEV-12220: add MODE_READX to permissible index read
modified: storage/connect/connect.cc
This commit is contained in:
@@ -859,8 +859,8 @@ RCODE CntIndexRead(PGLOBAL g, PTDB ptdb, OPVAL op,
|
||||
return RC_FX;
|
||||
} else if (x == 2) {
|
||||
// Remote index. Only used in read mode
|
||||
if (ptdb->GetMode() == MODE_READ && op != OP_SAME
|
||||
&& ptdb->ReadKey(g, op, kr))
|
||||
if ((ptdb->GetMode() == MODE_READ || ptdb->GetMode() == MODE_READX)
|
||||
&& op != OP_SAME && ptdb->ReadKey(g, op, kr))
|
||||
return RC_FX;
|
||||
|
||||
goto rnd;
|
||||
|
||||
Reference in New Issue
Block a user