~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/archive/ha_archive.cc

edit

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
16
16
 
17
17
 
18
 
#include <config.h>
 
18
#include "config.h"
19
19
 
20
 
#include <plugin/archive/archive_engine.h>
 
20
#include "plugin/archive/archive_engine.h"
21
21
#include <memory>
22
22
#include <boost/scoped_ptr.hpp>
23
23
 
1084
1084
 
1085
1085
    if ((lock_type >= TL_WRITE_CONCURRENT_INSERT &&
1086
1086
         lock_type <= TL_WRITE)
1087
 
        && ! session->doing_tablespace_operation())
 
1087
        && !session_tablespace_op(session))
1088
1088
      lock_type = TL_WRITE_ALLOW_WRITE;
1089
1089
 
1090
1090
    /*
1212
1212
  int rc= 0;
1213
1213
  const char *old_proc_info;
1214
1214
 
1215
 
  old_proc_info= session->get_proc_info();
1216
 
  session->set_proc_info("Checking table");
 
1215
  old_proc_info= get_session_proc_info(session);
 
1216
  set_session_proc_info(session, "Checking table");
1217
1217
  /* Flush any waiting data */
1218
1218
  pthread_mutex_lock(&share->mutex());
1219
1219
  azflush(&(share->archive_write), Z_SYNC_FLUSH);
1234
1234
      break;
1235
1235
  }
1236
1236
 
1237
 
  session->set_proc_info(old_proc_info);
 
1237
  set_session_proc_info(session, old_proc_info);
1238
1238
 
1239
1239
  if ((rc && rc != HA_ERR_END_OF_FILE))
1240
1240
  {