old_mtime = -1;
old_ctime = -1;
old_inode = -1;
+ old_size = -1;
old_checksum = "";
old_contents.clear();
old_ctime = parse_int(fields["ctime"]);
if (fields.count("inode"))
old_inode = parse_int(fields["inode"]);
+ if (fields.count("size"))
+ old_inode = parse_int(fields["size"]);
old_checksum = fields["checksum"];
return false;
if ((long long)stat_buf->st_ino != old_inode)
return false;
+ if (stat_buf->st_size != old_size)
+ return false;
/* File looks to be unchanged. */
return true;
/* Information about one file read from the old cache. */
bool end_of_cache;
bool old_is_validated;
- int64_t old_mtime, old_ctime, old_inode;
+ int64_t old_mtime, old_ctime, old_inode, old_size;
std::string old_name, old_checksum;
std::list<ObjectReference> old_contents;
};