Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: access null pointer #1414

Merged
merged 2 commits into from
May 1, 2023
Merged

fix: access null pointer #1414

merged 2 commits into from
May 1, 2023

Conversation

fly1ngpengu1ns
Copy link
Contributor

修复了 #1410 中访问空指针的问题,将报错信息修改成 记录table_name 和 partition_id。
同时深入到初始化变量的函数,如GetTablePartitionById中发现,初始化返回为NULL时可能是table_name找不到,也可能是partition_id不在table中,因此将报错输出设置成LOG(WARNING) << "Partition_id: " << partition_id << " or Table_name: " << table_name << " Not Found"; 这样的形式。

@wanghenshui wanghenshui changed the title fix: fix an issue with accessing null pointers fix: access null pointer Apr 30, 2023
src/pika_server.cc Outdated Show resolved Hide resolved
@AlexStocks AlexStocks requested a review from chejinge May 1, 2023 03:08
@chejinge chejinge merged commit 52df6d3 into OpenAtomFoundation:unstable May 1, 2023
bigdaronlee163 pushed a commit to bigdaronlee163/pika that referenced this pull request Jun 8, 2024
* fix: fix an issue with accessing null pointers

* fix: access null pointer
cheniujh pushed a commit to cheniujh/pika that referenced this pull request Sep 24, 2024
* fix: fix an issue with accessing null pointers

* fix: access null pointer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants