Project

General

Profile

Actions

Feature #601

open

mds: order directory commits after rename

Added by Sage Weil over 13 years ago. Updated almost 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Correctness/Safety
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Component(FS):
Labels (FS):
Pull request ID:

Description

When we rename something between directories, we should try to commit the target directory before the source directory. That way, if all goes to hell, we have at worst 2 links to the file instead of 0.

This probably means adding some xlist<CDir*> commit_after list to the CDirs and make commit wait until the others have committed first.

Actions

Also available in: Atom PDF