feat(shell/lean): use locking also for the index file
This commit is contained in:
parent
4dc3764a02
commit
edad31a9b1
1 changed files with 1 additions and 0 deletions
|
@ -544,6 +544,7 @@ int main(int argc, char ** argv) {
|
|||
cache.save(out);
|
||||
}
|
||||
if (gen_index) {
|
||||
exclusive_file_lock index_lock(index_name);
|
||||
std::shared_ptr<lean::file_output_channel> out(new lean::file_output_channel(index_name.c_str()));
|
||||
ios.set_regular_channel(out);
|
||||
index.save(regular(env, ios));
|
||||
|
|
Loading…
Reference in a new issue