Skip to content

Commit 39589ed

Browse files
author
Bogdan Degtyariov
committed
Bug 26654978: WL#10980 Multithreaded XAPI compilation error in Windows using VS 2015
1 parent b4888b8 commit 39589ed

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

include/mysql_xapi.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -444,9 +444,9 @@ typedef enum mysqlx_view_check_option_enum
444444
*/
445445
typedef enum mysqlx_row_locking_enum
446446
{
447-
LOCK_NONE = 0, /**< No locking */
448-
LOCK_SHARED = 1, /**< Locking in Shared mode */
449-
LOCK_EXCLUSIVE = 2 /**< Locking in Exclusive mode */
447+
ROW_LOCK_NONE = 0, /**< No locking */
448+
ROW_LOCK_SHARED = 1, /**< Locking in Shared mode */
449+
ROW_LOCK_EXCLUSIVE = 2 /**< Locking in Exclusive mode */
450450
} mysqlx_row_locking_t;
451451

452452
/*

xapi/crud.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -876,13 +876,13 @@ void mysqlx_stmt_t::set_row_locking(mysqlx_row_locking_t row_locking)
876876
case OP_FIND:
877877
switch (row_locking)
878878
{
879-
case LOCK_NONE:
879+
case ROW_LOCK_NONE:
880880
m_row_locking = cdk::Lock_mode_value::NONE;
881881
break;
882-
case LOCK_SHARED:
882+
case ROW_LOCK_SHARED:
883883
m_row_locking = cdk::Lock_mode_value::SHARED;
884884
break;
885-
case LOCK_EXCLUSIVE:
885+
case ROW_LOCK_EXCLUSIVE:
886886
m_row_locking = cdk::Lock_mode_value::EXCLUSIVE;
887887
break;
888888
default:

xapi/tests/xapi_crud-t.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ TEST_F(xapi, test_row_locking)
7070

7171
EXPECT_EQ(RESULT_OK, mysqlx_transaction_begin(get_session()));
7272
stmt = mysqlx_table_select_new(table);
73-
EXPECT_EQ(RESULT_OK, mysqlx_set_select_row_locking(stmt, LOCK_EXCLUSIVE));
73+
EXPECT_EQ(RESULT_OK, mysqlx_set_select_row_locking(stmt, ROW_LOCK_EXCLUSIVE));
7474
CRUD_CHECK(res = mysqlx_execute(stmt), stmt);
7575

7676
printf("\nRows data:");

0 commit comments

Comments
 (0)