Lines Matching defs:mtime
158 " mtime integer not null,\n"
164 " primary key (file, mtime, sourcetype)\n"
171 " mtime integer not null,\n"
174 " primary key (buildid, file, mtime)\n"
177 "create index if not exists " BUILDIDS "_f_de_idx on " BUILDIDS "_f_de (file, mtime);\n"
182 " mtime integer not null,\n"
186 " primary key (buildid, artifactsrc, file, mtime)\n"
193 " mtime integer not null,\n"
198 " primary key (buildid, debuginfo_p, executable_p, file, content, mtime)\n"
201 "create index if not exists " BUILDIDS "_r_de_idx on " BUILDIDS "_r_de (file, mtime);\n"
211 " mtime integer not null,\n"
215 " primary key (content, file, mtime)\n"
220 " b.hex as buildid, n.mtime, 'F' as sourcetype, f0.name as source0, n.mtime as mtime, null as source1\n"
224 " b.hex as buildid, n.mtime, 'R' as sourcetype, f0.name as source0, n.mtime as mtime, f1.name as source1\n"
231 " b.hex as buildid, n.mtime, 'F' as sourcetype, f0.name as source0, n.mtime as mtime, null as source1\n"
235 " b.hex as buildid, n.mtime, 'R' as sourcetype, f0.name as source0, n.mtime as mtime, f1.name as source1\n"
242 " b.hex as buildid, fs.name as artifactsrc, 'F' as sourcetype, f0.name as source0, n.mtime as mtime, null as source1, null as source0ref\n"
246 " b.hex as buildid, f1.name as artifactsrc, 'R' as sourcetype, f0.name as source0, sd.mtime as mtime, f1.name as source1, fsref.name as source0ref\n"
1123 add_mhd_last_modified (struct MHD_Response *resp, time_t mtime)
1126 struct tm *nowp = gmtime_r (&mtime, &now);
1536 The temporary file's mtime will be set to PARENT_MTIME.
1560 obatched(clog) << "mtime mismatch for "
1623 /* Set mtime to be the same as the parent file's mtime. */
1676 obatched(clog) << "mtime mismatch for " << b_source0 << endl;
1767 obatched(clog) << "mtime mismatch for " << b_source0 << endl;
1938 // Set the mtime so the fdcache file mtimes, even prefetched ones,
2159 "select mtime, sourcetype, source0, source1 from " BUILDIDS "_query_d where buildid = ? "
2160 "order by mtime desc");
2167 "select mtime, sourcetype, source0, source1 from " BUILDIDS "_query_e where buildid = ? "
2168 "order by mtime desc");
2179 "select mtime, sourcetype, source0, source1 from " BUILDIDS "_query_s where buildid = ? and artifactsrc in (?,?) "
2180 "order by sharedprefix(source0,source0ref) desc, mtime desc");
2191 "select mtime, sourcetype, source0, source1, 1 as debug_p from " BUILDIDS "_query_d where buildid = ? "
2193 "select mtime, sourcetype, source0, source1, 0 as debug_p from " BUILDIDS "_query_e where buildid = ? "
2194 "order by debug_p desc, mtime desc");
2217 obatched(clog) << "found mtime=" << b_mtime << " stype=" << b_stype
3146 << " mtime=" << sfs.st_mtime
3188 << " mtime=" << st.st_mtime << " atype="
3203 time_t mtime,
3368 .bind(5, mtime)
3378 .bind(2, mtime)
3385 << " mtime=" << mtime << " atype="
3468 << " mtime=" << st.st_mtime
3508 "(buildid, debuginfo_p, executable_p, file, mtime) "
3514 "(buildid, artifactsrc, file, mtime) "
3521 "and file = (select id from " BUILDIDS "_files where name = ?) and mtime = ?;");
3523 "insert or ignore into " BUILDIDS "_file_mtime_scanned (sourcetype, file, mtime, size)"
3530 "insert or ignore into " BUILDIDS "_r_de (buildid, debuginfo_p, executable_p, file, mtime, content) values ("
3539 "insert or ignore into " BUILDIDS "_r_sdef (file, mtime, content) values ("
3544 "sourcetype = 'R' and file = (select id from " BUILDIDS "_files where name = ?) and mtime = ?;");
3546 "insert or ignore into " BUILDIDS "_file_mtime_scanned (sourcetype, file, mtime, size)"
3827 "select distinct s.mtime, s.file, f.name from "
3856 int64_t mtime = sqlite3_column_int64 (files, 0);
3870 if ( regex_file_drop || rc < 0 || (mtime != (int64_t) s.st_mtime) )
3873 obatched(clog) << "groom: stale file=" << filename << " mtime=" << mtime << endl;
3874 stale_fileid_mtime.push_back(make_pair(fileid,mtime));
3888 // Now that we know which file/mtime tuples are stale, actually do
3898 sqlite_ps files_del_f_de (db, "nuke f_de", "delete from " BUILDIDS "_f_de where file = ? and mtime = ?");
3899 sqlite_ps files_del_r_de (db, "nuke r_de", "delete from " BUILDIDS "_r_de where file = ? and mtime = ?");
3901 "where file = ? and mtime = ?");
3922 int64_t mtime = stale.second;
3923 files_del_f_de.reset().bind(1,fileid).bind(2,mtime).step_ok_done();
3924 files_del_r_de.reset().bind(1,fileid).bind(2,mtime).step_ok_done();
3925 files_del_scan.reset().bind(1,fileid).bind(2,mtime).step_ok_done();