mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 21:12:26 +01:00
ndb - bug#23200
this changes lock taken during peek, to decrease likelyhood of transaction abort
This commit is contained in:
parent
deb9a3cc68
commit
2b04fb22be
1 changed files with 3 additions and 1 deletions
|
@ -1588,7 +1588,9 @@ int ha_ndbcluster::peek_indexed_rows(const byte *record)
|
|||
int res;
|
||||
DBUG_ENTER("peek_indexed_rows");
|
||||
|
||||
NdbOperation::LockMode lm= NdbOperation::LM_Read;
|
||||
NdbOperation::LockMode lm=
|
||||
(NdbOperation::LockMode)get_ndb_lock_type(m_lock.type);
|
||||
|
||||
first= NULL;
|
||||
if (table->s->primary_key != MAX_KEY)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue