Skip to content

Commit

Permalink
Filter lock flag 'F' (#7569)
Browse files Browse the repository at this point in the history
close #7563
  • Loading branch information
CalvinNeo authored May 30, 2023
1 parent c80f80a commit 8dcb558
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dbms/src/Storages/Transaction/TiKVRecordFormat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ inline void decodeLockCfValue(DecodedLockCFValue & res)
UNUSED(txn_source_prefic);
break;
}
case PESSIMISTIC_LOCK_WITH_CONFLICT_PREFIX:
{
// https://github.com/pingcap/tidb/issues/43540
break;
}
default:
{
std::string msg = std::string("invalid flag ") + flag + " in lock value " + value.toDebugString();
Expand Down
1 change: 1 addition & 0 deletions dbms/src/Storages/Transaction/TiKVRecordFormat.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ static const char GC_FENCE_PREFIX = 'F';
static const char LAST_CHANGE_PREFIX = 'l';
static const char TXN_SOURCE_PREFIX_FOR_WRITE = 'S';
static const char TXN_SOURCE_PREFIX_FOR_LOCK = 's';
static const char PESSIMISTIC_LOCK_WITH_CONFLICT_PREFIX = 'F';

static const size_t SHORT_VALUE_MAX_LEN = 64;

Expand Down

0 comments on commit 8dcb558

Please sign in to comment.