Skip to content

Commit 881e8a1

Browse files
committed
chore(server): Add more logging in case of check fail
1 parent a1b800e commit 881e8a1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/server/engine_shard_set.cc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,15 @@ void EngineShard::DestroyThreadLocal() {
135135
// Is called by Transaction::ExecuteAsync in order to run transaction tasks.
136136
// Only runs in its own thread.
137137
void EngineShard::PollExecution(const char* context, Transaction* trans) {
138-
VLOG(2) << "PollExecution " << context << " " << (trans ? trans->DebugId() : "")
139-
<< " " << txq_.size() << " " << continuation_trans_;
138+
VLOG(2) << "PollExecution " << context << " " << (trans ? trans->DebugId() : "") << " "
139+
<< txq_.size() << " " << continuation_trans_;
140140

141141
ShardId sid = shard_id();
142142

143143
uint16_t trans_mask = trans ? trans->GetLocalMask(sid) : 0;
144144
if (trans_mask & Transaction::AWAKED_Q) {
145-
DCHECK(continuation_trans_ == nullptr);
145+
DCHECK(continuation_trans_ == nullptr)
146+
<< continuation_trans_->DebugId() << " when polling " << trans->DebugId();
146147

147148
CHECK_EQ(committed_txid_, trans->notify_txid());
148149
bool keep = trans->RunInShard(this);

0 commit comments

Comments
 (0)