Skip to content

Commit fbfba8c

Browse files
committed
Do a proper cleanup when ptrack.map version is incompatible
1 parent cf8e309 commit fbfba8c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: engine.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,9 @@ ptrackMapInit(void)
234234
ptrack_map->version_num, ptrack_path, PTRACK_VERSION_NUM),
235235
errdetail("Deleting file \"%s\" and reinitializing ptrack map.", ptrack_path)));
236236

237-
/* Delete and try again */
238-
durable_unlink(ptrack_path, LOG);
237+
/* Clean up everything and try again */
238+
ptrackCleanFilesAndMap();
239+
239240
is_new_map = true;
240241
goto ptrack_map_reinit;
241242
}

0 commit comments

Comments
 (0)