1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
crateix!;
/**
| Make sure database has a unique fileid within
| the environment. If it doesn't, throw an
| error. BDB caches do not work properly when
| more than one open database has the same
| fileid (values written to one database may
| show up in reads to other databases).
|
| BerkeleyDB generates unique fileids by default
| (https://docs.oracle.com/cd/E17275_01/html/programmer_reference/program_copy.html),
| so bitcoin should never create different
| databases with the same fileid, but this error
| can be triggered if users manually copy
| database files.
*/