Open spacekookie opened 3 months ago
I am not a Sled developer, but I have encountered a similar problem. The solution was not to share the Tree
between threads, but to clone it for each thread.
P.S.
It is also better to wrap Tree
in Box
, because the size on the stack is 7648 bytes, and there may be a stack overflow error.
I've been migrating a project to sled from a different embedded db and I'm getting some strange compilation errors:
The type this is implemented for is:
And this is the trait definition that causes problems:
Is this a bug or am I holding the
Tree
wrong? Oh and I'm using version1.0.0-alpha.121