Include file size in the stat cache (but do not check against it yet).
authorMichael Vrable <mvrable@cs.ucsd.edu>
Thu, 5 Jul 2007 18:20:21 +0000 (11:20 -0700)
committerMichael Vrable <mvrable@turin.ucsd.edu>
Thu, 5 Jul 2007 18:20:21 +0000 (11:20 -0700)
statcache.cc

index db07792..376c099 100644 (file)
@@ -254,6 +254,7 @@ void StatCache::Save(const string &path, struct stat *stat_buf,
     *newcache << "mtime: " << encode_int(stat_buf->st_mtime) << "\n"
               << "ctime: " << encode_int(stat_buf->st_ctime) << "\n"
               << "inode: " << encode_int(stat_buf->st_ino) << "\n"
+              << "size: " << encode_int(stat_buf->st_size) << "\n"
               << "checksum: " << checksum << "\n";
 
     *newcache << "blocks:";