File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -21,19 +21,19 @@ fn main() -> Result<(), Box<dyn Error>> {
21
21
. max_dbs ( 3000 )
22
22
. open ( env2_path) ?;
23
23
24
- let mut wtxn = env1. write_txn ( ) ?;
25
- let db1: Database < Str , ByteSlice > = env1. create_database ( & mut wtxn, Some ( "hello" ) ) ?;
24
+ let mut wtxn1 = env1. write_txn ( ) ?;
25
+ let mut wtxn2 = env2. write_txn ( ) ?;
26
+ let db1: Database < Str , ByteSlice > = env1. create_database ( & mut wtxn1, Some ( "hello" ) ) ?;
26
27
let db2: Database < OwnedType < u32 > , OwnedType < u32 > > =
27
- env2. create_database ( & mut wtxn , Some ( "hello" ) ) ?;
28
+ env2. create_database ( & mut wtxn2 , Some ( "hello" ) ) ?;
28
29
29
30
// clear db
30
- db1. clear ( & mut wtxn ) ?;
31
- wtxn . commit ( ) ?;
31
+ db1. clear ( & mut wtxn1 ) ?;
32
+ wtxn1 . commit ( ) ?;
32
33
33
34
// clear db
34
- let mut wtxn = env2. write_txn ( ) ?;
35
- db2. clear ( & mut wtxn) ?;
36
- wtxn. commit ( ) ?;
35
+ db2. clear ( & mut wtxn2) ?;
36
+ wtxn2. commit ( ) ?;
37
37
38
38
// -----
39
39
You can’t perform that action at this time.
0 commit comments