DB->compact in presense of concurrent transactions -
01-24-2006
, 01:17 PM
Hello,
I have a question on how DB->compact() method in BDB 4.4 behaves if I
have concurrent transactions. When I call the method with DB_FREE_SPACE
flag it may take a while to rearrange(copy) pages and truncate the
file.
What happens if other threads try to run transactions on the same file?
Does compact block the whole file or it blocks only a few pages at a
time?
Anatoliy |