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

builder: fix redundant blob for inline bootstrap #852

Merged
merged 1 commit into from
Nov 9, 2022

Conversation

imeoer
Copy link
Collaborator

@imeoer imeoer commented Nov 9, 2022

The previous code generates a new empty blob for inline bootstrap mode:

if ctx.inline_bootstrap {
    let (_, _) = blob_mgr.get_or_create_current_blob(ctx)?;
}

And then the empty blob will be appended to blob table although
no chunk data be generated in the current build.

This patch avoids generating this kind of redundant blob.

Signed-off-by: Yan Song imeoer@linux.alibaba.com

The previous code generates a new empty blob for inline bootstrap mode:

```
if ctx.inline_bootstrap {
    let (_, _) = blob_mgr.get_or_create_current_blob(ctx)?;
}
```

And then the empty blob will be appended to blob table although
no chunk data be generated in the current build.

This patch avoids generating this kind of redundant blob.

Signed-off-by: Yan Song <imeoer@linux.alibaba.com>
@jiangliu jiangliu merged commit a73dd2f into dragonflyoss:master Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants