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

bugfix: fix bug of calculating shared log size #135

Merged
merged 4 commits into from
Jul 16, 2018
Merged

Conversation

qinzuoyan
Copy link
Member

to fix #133

@qinzuoyan qinzuoyan added the type/bug This issue reports a bug. label Jul 16, 2018

int64_t mutation_log::total_size_no_lock() const
{
return _log_files.size() > 0 ? _global_end_offset - _global_start_offset : 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

用TODO说明下log_size如果为0,那么global_start_offset是无效的。

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@shengofsun
Copy link
Contributor

有想过又不想过,还是感觉有点为了修bug而修bug……

@qinzuoyan qinzuoyan merged commit 5a273a6 into master Jul 16, 2018
@qinzuoyan qinzuoyan deleted the qinzuoyan1 branch July 16, 2018 08:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/bug This issue reports a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug of shared log's size calculation
3 participants