Commit 9385b417 authored by claes's avatar claes

dir_list was too short

parent 40d6dcfe
/* /*
* Proview $Id: wb_erep.cpp,v 1.50 2007-04-25 13:40:20 claes Exp $ * Proview $Id: wb_erep.cpp,v 1.51 2007-08-24 13:39:43 claes Exp $
* Copyright (C) 2005 SSAB Oxelösund AB. * Copyright (C) 2005 SSAB Oxelösund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -610,6 +610,7 @@ void wb_erep::loadMeta( pwr_tStatus *status, char *db) ...@@ -610,6 +610,7 @@ void wb_erep::loadMeta( pwr_tStatus *status, char *db)
} }
else { else {
// Imported loadfile // Imported loadfile
bool found = false;
for ( i = 0; i < m_dir_cnt; i++) { for ( i = 0; i < m_dir_cnt; i++) {
strcpy( vname, m_dir_list[i]); strcpy( vname, m_dir_list[i]);
strcat( vname, vol_array[0]); strcat( vname, vol_array[0]);
...@@ -618,6 +619,7 @@ void wb_erep::loadMeta( pwr_tStatus *status, char *db) ...@@ -618,6 +619,7 @@ void wb_erep::loadMeta( pwr_tStatus *status, char *db)
dcli_search_file( vname, found_file, DCLI_DIR_SEARCH_END); dcli_search_file( vname, found_file, DCLI_DIR_SEARCH_END);
if ( ODD(sts)) { if ( ODD(sts)) {
// Load... // Load...
found = true;
try { try {
vrep = new wb_vrepdbs( this, vname); vrep = new wb_vrepdbs( this, vname);
vrep->load(); vrep->load();
...@@ -634,6 +636,8 @@ void wb_erep::loadMeta( pwr_tStatus *status, char *db) ...@@ -634,6 +636,8 @@ void wb_erep::loadMeta( pwr_tStatus *status, char *db)
break; break;
} }
} }
if ( !found)
MsgWindow::message( 'E', "Volume snapshotfile not found", vname);
} }
} }
else { else {
......
/* /*
* Proview $Id: wb_erep.h,v 1.23 2006-02-08 13:53:57 claes Exp $ * Proview $Id: wb_erep.h,v 1.24 2007-08-24 13:39:43 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -49,7 +49,7 @@ class wb_erep ...@@ -49,7 +49,7 @@ class wb_erep
vector<wb_vrep*> m_vrepbuffer; vector<wb_vrep*> m_vrepbuffer;
map< string, wb_tMethod> m_methods; map< string, wb_tMethod> m_methods;
char m_dir_list[10][200]; char m_dir_list[25][200];
int m_dir_cnt; int m_dir_cnt;
int m_volatile_idx; int m_volatile_idx;
int m_buffer_max; int m_buffer_max;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment