Skip to content

Conversation

@mykhailo-kuchma
Copy link
Contributor

@mykhailo-kuchma mykhailo-kuchma commented Apr 7, 2021

When the max cache size is not set, SDK use the leveldb default env,
SDK needs to replace it with its own in order to disable mmap usage.
Fix the Limiter class constructor warning.

Relates-To: OLPSUP-13838
Signed-off-by: Mykhailo Kuchma ext-mykhailo.kuchma@here.com

@codecov
Copy link

codecov bot commented Apr 7, 2021

Codecov Report

Merging #1192 (10c3c74) into master (b7caabc) will increase coverage by 0.0%.
The diff coverage is 100.0%.

❗ Current head 10c3c74 differs from pull request most recent head 5894563. Consider uploading reports for the commit 5894563 to get more accurate results
Impacted file tree graph

@@          Coverage Diff           @@
##           master   #1192   +/-   ##
======================================
  Coverage    84.7%   84.7%           
======================================
  Files         358     358           
  Lines       12252   12253    +1     
======================================
+ Hits        10377   10378    +1     
  Misses       1875    1875           
Impacted Files Coverage Δ
olp-cpp-sdk-core/src/cache/DiskCache.cpp 73.0% <100.0%> (+0.1%) ⬆️
olp-cpp-sdk-core/src/cache/DiskCacheEnv.cpp 71.9% <100.0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b7caabc...5894563. Read the comment docs.

Copy link
Contributor

@andescu andescu left a comment

Choose a reason for hiding this comment

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

Please enhance commit message. Why is it needed? What is the issue? Etc.

When the max cache size is not set, SDK use the leveldb default env,
SDK need to replace it with it's own in order to disable mmap usage.
Fix the Limiter class constructor warning.

Relates-To: OLPSUP-13838
Signed-off-by: Mykhailo Kuchma <ext-mykhailo.kuchma@here.com>
@mykhailo-kuchma mykhailo-kuchma changed the title Add a default environment Use SDK leveldb environment Apr 7, 2021
@mykhailo-kuchma mykhailo-kuchma requested a review from andescu April 7, 2021 07:30
@mykhailo-kuchma mykhailo-kuchma merged commit 01ed59a into master Apr 7, 2021
@mykhailo-kuchma mykhailo-kuchma deleted the bug/olpsup-13838-1 branch April 7, 2021 08:01
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.

3 participants