Skip to content

fix(pebbledb): Initialize DB in batchDB constructor#128

Merged
jmalicevic merged 1 commit intomainfrom
jasmina/fix-pebble-constructor
Jan 30, 2024
Merged

fix(pebbledb): Initialize DB in batchDB constructor#128
jmalicevic merged 1 commit intomainfrom
jasmina/fix-pebble-constructor

Conversation

@jmalicevic
Copy link
Collaborator

As described in the comment, there is no specific need to initialize the DB for the batch version of pebble DB. But if we want to add functions like compaction, we need this to be initialized to something to avoid null pointer exceptions.

@jmalicevic jmalicevic added the bug Something isn't working label Jan 30, 2024
@jmalicevic jmalicevic added this to the 2024-Q1 milestone Jan 30, 2024
@jmalicevic jmalicevic self-assigned this Jan 30, 2024
@jmalicevic jmalicevic requested a review from a team as a code owner January 30, 2024 09:18
@codecov
Copy link

codecov bot commented Jan 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8fd0e20) 76.74% compared to head (7bf97a7) 76.80%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #128      +/-   ##
==========================================
+ Coverage   76.74%   76.80%   +0.05%     
==========================================
  Files          23       23              
  Lines        2043     2048       +5     
==========================================
+ Hits         1568     1573       +5     
  Misses        403      403              
  Partials       72       72              
Files Coverage Δ
pebble.go 73.56% <100.00%> (+0.51%) ⬆️
Files Coverage Δ
pebble.go 73.56% <100.00%> (+0.51%) ⬆️

@jmalicevic jmalicevic added this pull request to the merge queue Jan 30, 2024
Merged via the queue into main with commit 7ebb916 Jan 30, 2024
@jmalicevic jmalicevic deleted the jasmina/fix-pebble-constructor branch January 30, 2024 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants