Reduce severity of EMLINK warnings

Fixes #1357.
This commit is contained in:
Eelco Dolstra 2017-05-01 14:36:56 +02:00
parent 0dddcf867a
commit 227a48f86f
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -220,8 +220,7 @@ void LocalStore::optimisePath_(OptimiseStats & stats, const Path & path, InodeHa
rather than on the original link. (Probably it rather than on the original link. (Probably it
temporarily increases the st_nlink field before temporarily increases the st_nlink field before
decreasing it again.) */ decreasing it again.) */
if (st.st_size) debug("%s has reached maximum number of links", linkPath);
printInfo(format("%1% has maximum number of links") % linkPath);
return; return;
} }
throw SysError(format("cannot rename %1% to %2%") % tempLink % path); throw SysError(format("cannot rename %1% to %2%") % tempLink % path);