67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
** Set a secondary file. The primary file must be set first. There
** must be at least one secondary but there can be more than one if
** desired.
*/
void pivot_set_secondary(int rid){
/* Insert the primary record */
db_multi_exec(
"INSERT INTO aqueue(rid, mtime, pending, src)"
" SELECT %d, mtime, 1, 0 FROM plink WHERE cid=%d",
rid, rid
);
}
/*
** Find the most recent common ancestor of the primary and one of
|
|
|
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
** Set a secondary file. The primary file must be set first. There
** must be at least one secondary but there can be more than one if
** desired.
*/
void pivot_set_secondary(int rid){
/* Insert the primary record */
db_multi_exec(
"INSERT OR IGNORE INTO aqueue(rid, mtime, pending, src)"
" SELECT %d, mtime, 1, 0 FROM plink WHERE cid=%d",
rid, rid
);
}
/*
** Find the most recent common ancestor of the primary and one of
|