|
|
@ -7783,8 +7783,11 @@ static void check_restore_dir() |
|
|
|
{ |
|
|
|
{ |
|
|
|
struct stat statbuf; |
|
|
|
struct stat statbuf; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!restorefrom) { |
|
|
|
|
|
|
|
restorefrom = strdup("logs"); |
|
|
|
if (!restorefrom) |
|
|
|
if (!restorefrom) |
|
|
|
quit(1, "ERR: '-r dir' required to specify the ckpool hourly ckdb log dir"); |
|
|
|
quithere(1, "OOM"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!(*restorefrom)) |
|
|
|
if (!(*restorefrom)) |
|
|
|
quit(1, "ERR: '-r dir' can't be empty"); |
|
|
|
quit(1, "ERR: '-r dir' can't be empty"); |
|
|
|