private void BlockAddIndexes(bool includePendingClose)
{
AcquireRead();
bool success = false;
try
{
// Make sure we are still open since we could have
// waited quite a while for last addIndexes to finish
EnsureOpen(includePendingClose);
success = true;
}
finally
{
if (!success)
ReleaseRead();
}
}