Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search non-existing keys in P-Masstree #15

Closed
Transpeptidase opened this issue Nov 3, 2020 · 2 comments
Closed

Search non-existing keys in P-Masstree #15

Transpeptidase opened this issue Nov 3, 2020 · 2 comments

Comments

@Transpeptidase
Copy link
Contributor

Hi, when I invoke a get for non-existing keys in P-Masstree, "should not enter here....." is printed.

code:

  masstree::masstree *tree = new masstree::masstree();
  auto t = tree->getThreadInfo();
  char *str = "helloworld";
  tree->get(str, t);

printed information:

should not enter here
fkey = rowolleh, key = 7522537965574647666, searched key = 0, key index = -1
@SeKwonLee
Copy link
Member

Hi @Transpeptidase ,

That context printing "should not enter here.." was added for the debugging purpose to check if the positive search operations enter there. So, if you see "should not enter here..." after the negative search, it means the algorithm that I intended works correctly. I have commented out that context not to show debugging messages through the recent commit to the master branch. Please do git pull once.

Thanks,
Sekwon

@SeKwonLee
Copy link
Member

Let me close this issue. Please open another issue if you find others.

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

No branches or pull requests

2 participants