Skip to content

Commit 70be62c

Browse files
authored
chore: add DCHECK to easier tests debugging (#5018)
1 parent 2128eb3 commit 70be62c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/server/cluster/outgoing_slot_migration.cc

+1
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ bool OutgoingMigration::FinalizeMigration(long attempt) {
311311
dfly::Pause(server_family_->GetNonPriviligedListeners(), &namespaces->GetDefaultNamespace(),
312312
nullptr, ClientPause::ALL, is_pause_in_progress);
313313

314+
DCHECK(pause_fb_opt);
314315
if (!pause_fb_opt) {
315316
auto err = absl::StrCat("Migration finalization time out ", cf_->MyID(), " : ",
316317
migration_info_.node_info.id, " attempt ", attempt);

0 commit comments

Comments
 (0)