1
0
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:
Olivier Bertrand
2017-03-18 10:40:51 +01:00
parent 932a4401f0
commit d9b7433c98

View File

@@ -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;