X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/blobdiff_plain/4872dc73f13a2944bd6f7fac2c7335a2c891072b..741abed826c794a5b85a3ab1eb33de8db69f905d:/gen/hosts.dc diff --git a/gen/hosts.dc b/gen/hosts.dc index 8119f6e3..46a76745 100644 --- a/gen/hosts.dc +++ b/gen/hosts.dc @@ -68,6 +68,11 @@ char **argv; EXEC SQL WHENEVER SQLERROR GOTO sqlerr; + /* Acquire the required locks in the appropriate order */ + + EXEC SQL SELECT modtime INTO :name FROM machine WHERE mach_id = 0; + EXEC SQL SELECT modtime INTO :name FROM hostalias WHERE mach_id = 0; + gettimeofday(&now, NULL); fprintf(out, "; MIT Network Host Table\n;\n");