~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/filesystem/filesystem.h

  • Committer: Zimin
  • Date: 2010-07-29 13:44:10 UTC
  • mto: (1675.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 1677.
  • Revision ID: ziminq@gmail.com-20100729134410-yauwnw9i3bkogeg0
wrap transparentfile in scoped_ptr

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include <drizzled/cursor.h>
23
23
#include <drizzled/thr_lock.h>
24
24
 
 
25
#include <boost/scoped_ptr.hpp>
 
26
 
25
27
#include <sys/types.h>
26
28
#include <sys/stat.h>
27
29
#include <fstream>
52
54
class FilesystemCursor : public drizzled::Cursor
53
55
{
54
56
  FilesystemTableShare *share;       /* Shared lock info */
55
 
  TransparentFile *file_buff;
 
57
  boost::scoped_ptr<TransparentFile> file_buff;
56
58
  int file_desc;
57
59
  std::string update_file_name;
58
60
  int update_file_desc;
68
70
  FilesystemCursor(drizzled::plugin::StorageEngine &engine, drizzled::TableShare &table_arg);
69
71
  ~FilesystemCursor()
70
72
  {
71
 
    if (file_buff)
72
 
      delete file_buff;
73
73
  }
74
74
 
75
75
  /** @brief