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

[CBRD-25314] Get partition information of class to get HFID of subclasses #5151

Closed
wants to merge 3 commits into from

Conversation

YeunjunLee
Copy link
Contributor

http://jira.cubrid.org/browse/CBRD-25314

For a given class-oid, determine whether the class is a partitioned table. If it is, dump its subclasses with their HFID.
  

  • Retrieve the partition information of the class using the heap_get_class_partitions function.
  • If the number of partitions is 0, the given class is not partitioned. If the number of partitions is greater than 0, parts will contain the class-oid of subclasses.
  • Since the first element of parts is the information of root class (itself), information of subclass contains from second element.
  • Dump the subclass using their respective HFID with the heap_dump function.

YeunjunLee and others added 3 commits April 25, 2024 16:11
…UBRID#5141)

http://jira.cubrid.org/browse/CBRD-25312

Modify heap dump of diagdb utility to accept class-name parameter.

Add -c and --class-name flag at diagdb option table and option map.
Modify diagdb main function to fetch class-name parameter
Create heap_dump_heap_file() function, which dumps a specific heap file with class name.
@YeunjunLee YeunjunLee requested review from Rudeus and joohok April 26, 2024 05:01
@YeunjunLee YeunjunLee closed this Apr 26, 2024
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.

1 participant