Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fbfba8c

Browse filesBrowse files
committed
Do a proper cleanup when ptrack.map version is incompatible
1 parent cf8e309 commit fbfba8c
Copy full SHA for fbfba8c

File tree

1 file changed

+3
-2
lines changed
Filter options

1 file changed

+3
-2
lines changed

‎engine.c

Copy file name to clipboardExpand all lines: engine.c
+3-2Lines changed: 3 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.