Hmm, I think we should.
What should it "mean" when you call commit(), while another thread is
in the middle of addIndexes?
We could 1) disallow it (throw an exception if you try), 2) allow it
but block until addIndexes is done, 3) allow it but commit all changes
up until when addIndexes was first called ... anything else?
I think there're similar problems with calling optimize() while
addIndexes is in progress... I think we should disallow that?
Mike
Ning Li wrote:
Hi,
Should we guard against the case when commit() is called during
addIndexes?
Otherwise, errors such as a file does not exist could happen during
commit.
Cheers,
Ning Li
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]