Skip to content

transaction commit doesn't persist to disk #361

@maan2003

Description

@maan2003

More details about the bug

at a5230af

[maan2003@runner-01:~/src/tonbo]$ cargo r --example persistence_test -- write --id 0 --value foo
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.20s
     Running `target-nix/debug/examples/persistence_test write --id 0 --value foo`
Opening database at: ./test_db
Starting transaction...
Inserting record: id=0, value=foo
Committing transaction...
Transaction committed successfully!
now exiting

[maan2003@runner-01:~/src/tonbo]$ cargo r --example persistence_test -- read --id 0
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.19s
     Running `target-nix/debug/examples/persistence_test read --id 0`
Opening database at: ./test_db
Looking for record with id=0...
Record with id=0 NOT FOUND!

What is your expected behavior?

second command to returning the value foo

How to reproduce?

see above

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions