Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
titan
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangzongwu
titan
Commits
3fcbc2b3
Unverified
Commit
3fcbc2b3
authored
Mar 04, 2020
by
yiwu-arbug
Committed by
GitHub
Mar 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix gc_picker (#144) (#146)
Signed-off-by:
liumh8
<
571621369@qq.com
>
Fixes #144
parent
4dc4ba89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
blob_gc_picker.cc
src/blob_gc_picker.cc
+3
-1
No files found.
src/blob_gc_picker.cc
View file @
3fcbc2b3
...
...
@@ -66,7 +66,9 @@ std::unique_ptr<BlobGC> BasicBlobGCPicker::PickBlobGC(
"got batch size %"
PRIu64
", estimate output %"
PRIu64
" bytes"
,
batch_size
,
estimate_output_size
);
if
(
blob_files
.
empty
()
||
batch_size
<
cf_options_
.
min_gc_batch_size
)
{
if
(
blob_files
.
empty
()
||
(
batch_size
<
cf_options_
.
min_gc_batch_size
&&
estimate_output_size
<
cf_options_
.
blob_file_target_size
))
{
return
nullptr
;
}
// if there is only one small file to merge, no need to perform
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment