-
Notifications
You must be signed in to change notification settings - Fork 420
Calling generate_id() in a transaction blocks #1139
Copy link
Copy link
Closed
Labels
Description
Bug reports must include all following items:
- expected result
generate an ID and continue
- actual result
db.generate_id() blocks
- sled version
0.34.2
- rustc version
rustc 1.47.0-nightly (d6953df14 2020-07-25)
- operating system
nixos
- minimal code sample that helps to reproduce the issue
fn test_transaction(db: &sled::Db) -> sled::transaction::TransactionResult<(), ()> {
db.transaction(|t| {
let id = db.generate_id()?;
Ok(())
})
}
fn test() -> sled::Result<()> {
let db = sled::open("/tmp/testsled")?;
test_transaction(&db).unwrap();
Ok(())
}
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
super::test();
}
}- logs, panic messages, stack traces
nothing
Reactions are currently unavailable