Open vporton opened 6 months ago
Here's an example of how CanDB can be used with deletion https://github.com/ByronBecker/hello-candb/tree/deletion-example
deleteUser
endpoint -> https://github.com/ByronBecker/hello-candb/blob/5a9339509bd8c39fc11c6b381e8a59ad56222cb1/src/helloservice/HelloService.mo#L66
Frontend allowing you to delete a user that has been inserted https://github.com/ByronBecker/hello-candb/blob/5a9339509bd8c39fc11c6b381e8a59ad56222cb1/frontend/src/App.tsx#L130
The error made repeatable by https://github.com/vporton/bug-candb-delete test repo.
Now I am working on a minimal example.
Oops, it is repeatable by commit c6553fc5e5fc9704058a870e52b47fed556db863
in my repo.
I created a nearly minimal example for CanDB: https://github.com/vporton/bug-candb-delete/tree/candb-minimal
The further work is locating the error in CanDB or more likely in BTree.
My software does some puts, attribute modification. Then I try to delete an existing key:
This happens with the latest version of
beta
, if I did not confuse anything.