Skip to content

Commit

Permalink
fixed bug when removing BIND_DATA_TO_DBDATA
Browse files Browse the repository at this point in the history
  • Loading branch information
sztupy committed Oct 20, 2010
1 parent 30bd9b6 commit 0247bf8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lagfixutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,12 @@ int do_lagfix() {
ui_print("Restoring data\n");
nandroid_restore(tmp,0,0,1,1,0);

// restore might have brought some .data into dbdata, clear them
if (!get_bind_options()) {
if (ensure_root_path_mounted("DATADATA:")!=0) return -1;
__system("rm -rf /dbdata/.data");
}

__system("mount");
ui_print("Unmounting again to be sure\n");
sync();
Expand Down

0 comments on commit 0247bf8

Please sign in to comment.