@ -141,6 +141,9 @@ class Env {
} ;
} ;
Env ( ) : thread_status_updater_ ( nullptr ) { }
Env ( ) : thread_status_updater_ ( nullptr ) { }
// No copying allowed
Env ( const Env & ) = delete ;
void operator = ( const Env & ) = delete ;
virtual ~ Env ( ) ;
virtual ~ Env ( ) ;
@ -527,11 +530,6 @@ class Env {
// The pointer to an internal structure that will update the
// The pointer to an internal structure that will update the
// status of each thread.
// status of each thread.
ThreadStatusUpdater * thread_status_updater_ ;
ThreadStatusUpdater * thread_status_updater_ ;
private :
// No copying allowed
Env ( const Env & ) ;
void operator = ( const Env & ) ;
} ;
} ;
// The factory function to construct a ThreadStatusUpdater. Any Env
// The factory function to construct a ThreadStatusUpdater. Any Env
@ -711,6 +709,9 @@ class WritableFile {
io_priority_ ( Env : : IO_TOTAL ) ,
io_priority_ ( Env : : IO_TOTAL ) ,
write_hint_ ( Env : : WLTH_NOT_SET ) ,
write_hint_ ( Env : : WLTH_NOT_SET ) ,
strict_bytes_per_sync_ ( options . strict_bytes_per_sync ) { }
strict_bytes_per_sync_ ( options . strict_bytes_per_sync ) { }
// No copying allowed
WritableFile ( const WritableFile & ) = delete ;
void operator = ( const WritableFile & ) = delete ;
virtual ~ WritableFile ( ) ;
virtual ~ WritableFile ( ) ;
@ -870,9 +871,6 @@ class WritableFile {
private :
private :
size_t last_preallocated_block_ ;
size_t last_preallocated_block_ ;
size_t preallocation_block_size_ ;
size_t preallocation_block_size_ ;
// No copying allowed
WritableFile ( const WritableFile & ) ;
void operator = ( const WritableFile & ) ;
protected :
protected :
Env : : IOPriority io_priority_ ;
Env : : IOPriority io_priority_ ;
@ -884,6 +882,10 @@ class WritableFile {
class RandomRWFile {
class RandomRWFile {
public :
public :
RandomRWFile ( ) { }
RandomRWFile ( ) { }
// No copying allowed
RandomRWFile ( const RandomRWFile & ) = delete ;
RandomRWFile & operator = ( const RandomRWFile & ) = delete ;
virtual ~ RandomRWFile ( ) { }
virtual ~ RandomRWFile ( ) { }
// Indicates if the class makes use of direct I/O
// Indicates if the class makes use of direct I/O
@ -914,10 +916,6 @@ class RandomRWFile {
// If you're adding methods here, remember to add them to
// If you're adding methods here, remember to add them to
// RandomRWFileWrapper too.
// RandomRWFileWrapper too.
// No copying allowed
RandomRWFile ( const RandomRWFile & ) = delete ;
RandomRWFile & operator = ( const RandomRWFile & ) = delete ;
} ;
} ;
// MemoryMappedFileBuffer object represents a memory-mapped file's raw buffer.
// MemoryMappedFileBuffer object represents a memory-mapped file's raw buffer.
@ -975,6 +973,10 @@ class Logger {
explicit Logger ( const InfoLogLevel log_level = InfoLogLevel : : INFO_LEVEL )
explicit Logger ( const InfoLogLevel log_level = InfoLogLevel : : INFO_LEVEL )
: closed_ ( false ) , log_level_ ( log_level ) { }
: closed_ ( false ) , log_level_ ( log_level ) { }
// No copying allowed
Logger ( const Logger & ) = delete ;
void operator = ( const Logger & ) = delete ;
virtual ~ Logger ( ) ;
virtual ~ Logger ( ) ;
// Close the log file. Must be called before destructor. If the return
// Close the log file. Must be called before destructor. If the return
@ -1016,9 +1018,6 @@ class Logger {
bool closed_ ;
bool closed_ ;
private :
private :
// No copying allowed
Logger ( const Logger & ) ;
void operator = ( const Logger & ) ;
InfoLogLevel log_level_ ;
InfoLogLevel log_level_ ;
} ;
} ;
@ -1030,8 +1029,8 @@ class FileLock {
private :
private :
// No copying allowed
// No copying allowed
FileLock ( const FileLock & ) ;
FileLock ( const FileLock & ) = delete ;
void operator = ( const FileLock & ) ;
void operator = ( const FileLock & ) = delete ;
} ;
} ;
class DynamicLibrary {
class DynamicLibrary {