mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 07:50:11 +01:00
fixed a reindex vs. folder issue
This commit is contained in:
parent
7c1150052b
commit
3c4ed238f2
@ -222,6 +222,13 @@ int main(int argc, char **argv){
|
||||
initrules(data.archiving_rules);
|
||||
initrules(data.retention_rules);
|
||||
|
||||
init_session_data(&sdata, &cfg);
|
||||
|
||||
|
||||
if(open_database(&sdata, &cfg) == ERR){
|
||||
p_clean_exit("cannot connect to mysql server", 1);
|
||||
}
|
||||
|
||||
if(folder){
|
||||
data.folder = get_folder_id(&sdata, &data, folder, 0);
|
||||
if(data.folder == 0){
|
||||
@ -230,13 +237,6 @@ int main(int argc, char **argv){
|
||||
}
|
||||
}
|
||||
|
||||
init_session_data(&sdata, &cfg);
|
||||
|
||||
|
||||
if(open_database(&sdata, &cfg) == ERR){
|
||||
p_clean_exit("cannot connect to mysql server", 1);
|
||||
}
|
||||
|
||||
|
||||
load_mydomains(&sdata, &data, &cfg);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user