[BUG] set memtable for operation lock

This commit is contained in:
Handora
2023-12-19 21:52:34 +00:00
committed by ob-robot
parent e348df72ef
commit d6512565b6

View File

@ -567,6 +567,8 @@ int ObMemtable::lock(
TRANS_LOG(WARN, "encode mtk failed", K(ret), K(param));
} else if (OB_FAIL(lock_(param, context, tmp_key, mtk))) {
TRANS_LOG(WARN, "lock_ failed", K(ret), K(param));
} else {
guard.set_memtable(this);
}
@ -611,6 +613,8 @@ int ObMemtable::lock(
TRANS_LOG(WARN, "encode mtk failed", K(ret), K(param));
} else if (OB_FAIL(lock_(param, context, rowkey.get_store_rowkey(), mtk))) {
TRANS_LOG(WARN, "lock_ failed", K(ret), K(param));
} else {
guard.set_memtable(this);
}
if (OB_FAIL(ret) && (OB_TRY_LOCK_ROW_CONFLICT != ret) && (OB_TRANSACTION_SET_VIOLATION != ret)) {