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

storage: fix schema log message #463

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

Serpentian
Copy link
Contributor

@Serpentian Serpentian commented Dec 26, 2023

storage: fix schema log message

exports_deply_funcs() used to log the core version as nil. The problem
is the fact, that table.concat was used for core version string, so the
complied exports always had nil instead of core_version.

table.concat doesn't work with non-array tables, as they have no defined
order. Let's explicitly define __tostring function for version and use
it in order to log core version.

Closes #465

NO_DOC=bugfix

@Serpentian Serpentian requested review from Gerold103 and removed request for Gerold103 December 26, 2023 22:46
@Serpentian Serpentian marked this pull request as draft December 27, 2023 12:51
@Serpentian Serpentian force-pushed the fix-core-version branch 2 times, most recently from 2125660 to bdf8601 Compare December 29, 2023 01:10
@Serpentian Serpentian marked this pull request as ready for review December 29, 2023 01:16
@Serpentian Serpentian requested a review from Gerold103 December 29, 2023 01:16
Copy link
Collaborator

@Gerold103 Gerold103 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch!

exports_deploy_funcs() used to log the core version as nil. The problem
is the fact, that table.concat was used for core version string, so the
complied exports always had nil instead of core_version.

table.concat doesn't work with non-array tables, as they have no defined
order. Let's explicitly define __tostring function for version and use
it in order to log core version.

Closes tarantool#465

NO_DOC=bugfix
Copy link
Collaborator

@Gerold103 Gerold103 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch!

@Gerold103 Gerold103 merged commit 48e6e9d into tarantool:master Jan 11, 2024
8 checks passed
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.

log: 'deploying exports' message has no core version
2 participants