fix maybe_lock_file

introduced in previous commit
This commit is contained in:
Aaron Gyes 2021-12-09 00:58:05 -08:00
parent ce475c0b4c
commit e181d825fa

View file

@ -380,7 +380,7 @@ bool history_impl_t::maybe_lock_file(int fd, int lock_type) {
// is on a remote filesystem.
if (abandoned_locking) return false;
if (history_t::chaos_mode) return false;
if (path_get_data_is_remote()) return false;
if (!path_get_data_is_remote()) return false;
double start_time = timef();
int retval = flock(fd, lock_type);