Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

fix: assert is not necessary when the table config is updated #1121

Merged
merged 1 commit into from
Jun 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/client/partition_resolver_simple.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,17 +270,15 @@ void partition_resolver_simple::query_config_reply(error_code err,
zauto_write_lock l(_config_lock);

if (_app_id != -1 && _app_id != resp.app_id) {
dassert(false,
"app id is changed (mostly the app was removed and created with the same "
dwarn_f("app id is changed (mostly the app was removed and created with the same "
"name), local Vs remote: %u vs %u ",
_app_id,
resp.app_id);
}
if (_app_partition_count != -1 && _app_partition_count != resp.partition_count &&
_app_partition_count * 2 != resp.partition_count &&
_app_partition_count != resp.partition_count * 2) {
dassert(false,
"partition count is changed (mostly the app was removed and created with "
dwarn_f("partition count is changed (mostly the app was removed and created with "
"the same name), local Vs remote: %u vs %u ",
_app_partition_count,
resp.partition_count);
Expand Down