// allow a new file to be generated.
if (sr->version != k_version) {
cc_log(
- "Dropping inode cache because found version %u does not match expected "
- "version %u",
+ "Dropping inode cache because found version %u does not match expected"
+ " version %u",
sr->version,
k_version);
munmap(sr, sizeof(SharedRegion));
int err = pthread_mutex_lock(&bucket->mt);
# ifdef PTHREAD_MUTEX_ROBUST
if (err == EOWNERDEAD) {
- if (m_config.debug())
+ if (m_config.debug()) {
++m_sr->errors;
+ }
err = pthread_mutex_consistent(&bucket->mt);
if (err) {
cc_log(
bool is_nfs;
if (Util::is_nfs_fd(temp_fd.first, &is_nfs) == 0 && is_nfs) {
cc_log(
- "Inode cache not supported because the cache file would be located on "
- "nfs: %s",
+ "Inode cache not supported because the cache file would be located on"
+ " nfs: %s",
filename.c_str());
unlink(temp_fd.second.c_str());
close(temp_fd.first);
return false;
}
-InodeCache::InodeCache(const Config& config)
- : m_config(config), m_sr(nullptr), m_failed(false)
+InodeCache::InodeCache(const Config& config) : m_config(config)
{
}
# ifdef HAVE_LINUX_FS_H
*is_nfs = buf.f_type == NFS_SUPER_MAGIC;
# else // Mac OS X and some other BSD flavors
- *is_nfs = !strcmp(buf.f_fstypename, "nfs");
+ *is_nfs = strcmp(buf.f_fstypename, "nfs") == 0;
# endif
return 0;
}