colinmarc / colinmarc/cdb

The hash is not finding the keys anymore

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
69
Forks
13
PR merge metrics
No merged PRs in 30d

Description

I recompiled with go 1.17 under iMac M1.

Reading a previously created cdb database.

The iterator is working fine. I see all key/values.

Get is not working. Stops at
if slotHash == 0 {

What is wrong?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the failure when reading a previously created cdb database with Go 1.17 on an iMac M1, comparing the working iterator with Get. Inspect the Get path around the `if slotHash == 0` condition and determine why existing keys are not found; done means Get successfully retrieves keys from the existing database.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.