Lines Matching defs:to_keep
1108 insert_sort(int64_t to_keep[], int64_t versions, int64_t version) {
1110 while (i < versions && version < to_keep[i]) {
1117 memmove(&to_keep[i + 1], &to_keep[i],
1118 sizeof(to_keep[0]) * (versions - i - 1));
1120 to_keep[i] = version;
1125 int64_t to_keep[ISC_LOG_MAX_VERSIONS] = { 0 };
1136 * First we fill 'to_keep' structure using insertion sort
1138 memset(to_keep, 0, sizeof(to_keep));
1153 insert_sort(to_keep, versions, version);
1160 * to_keep[versions - 1] is the last one we want to keep
1162 return (to_keep[versions - 1]);
1220 * Then we remove all files that we don't want to_keep