Skip to content

Conversation

harshil-goel
Copy link
Contributor

No description provided.

@harshil-goel harshil-goel requested a review from a team as a code owner July 15, 2025 14:52
@ryanfoxtyler ryanfoxtyler merged commit b43f4aa into main Jul 15, 2025
6 of 8 checks passed
@ryanfoxtyler ryanfoxtyler deleted the harshil-goel/fix-key-range branch July 15, 2025 16:58
Copy link
Member

@mangalaman93 mangalaman93 left a comment

Choose a reason for hiding this comment

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

We should add a test as well and considering getting rid of the boolean field that decides what function to use. We can simply check whether a field is nil.

//
// Note: Calls to KeyToList are concurrent.
KeyToList func(key []byte, itr *Iterator) (*pb.KVList, error)
// UseKeyToListWithThreadId is used to indicate that KeyToListWithThreadId should be used
Copy link
Member

Choose a reason for hiding this comment

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

This comment needs to be simplified.

if kvs, err := st.FinishThread(threadId); err != nil {
return err
} else {
for _, kv := range kvs.Kv {
Copy link
Member

Choose a reason for hiding this comment

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

we should define this as a default function and assign it to FinishThread

var list *pb.KVList
var err error
if st.UseKeyToListWithThreadId {
list, err = st.KeyToListWithThreadId(item.KeyCopy(nil), itr, threadId)
Copy link
Member

Choose a reason for hiding this comment

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

what's the benefit of passing the threadId?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants