fix logfile replay on standalone resources

This commit is contained in:
Thomas Schoebel-Theuer 2012-02-06 17:16:19 +01:00 committed by Thomas Schoebel-Theuer
parent f4fda83ac0
commit 8909880554
1 changed files with 3 additions and 2 deletions

View File

@ -2753,8 +2753,9 @@ static int make_sync(void *buf, struct mars_dent *dent)
goto done;
connect_dent = (void*)mars_find_dent(global, tmp);
if (!connect_dent || !connect_dent->new_link) {
MARS_WRN("cannot determine peer, symlink '%s' is missing\n", tmp);
status = -ENOENT;
MARS_WRN("cannot determine peer, symlink '%s' is missing => assuming that I am STANDALONE\n", tmp);
rot->allow_replay = true;
status = 0;
goto done;
}
peer = connect_dent->new_link;