diff --git a/src/chunkserver/datastore/file_pool.h b/src/chunkserver/datastore/file_pool.h index 0323216155..8a2d1a0b0c 100644 --- a/src/chunkserver/datastore/file_pool.h +++ b/src/chunkserver/datastore/file_pool.h @@ -76,33 +76,6 @@ struct FilePoolOptions { ::memset(metaPath, 0, 256); ::memset(filePoolDir, 0, 256); } - - FilePoolOptions& operator=(const FilePoolOptions& other) { - getFileFromPool = other.getFileFromPool; - needClean = other.needClean; - bytesPerWrite = other.bytesPerWrite; - iops4clean = other.iops4clean; - metaFileSize = other.metaFileSize; - fileSize = other.fileSize; - retryTimes = other.retryTimes; - metaPageSize = other.metaPageSize; - ::memcpy(metaPath, other.metaPath, 256); - ::memcpy(filePoolDir, other.filePoolDir, 256); - return *this; - } - - FilePoolOptions(const FilePoolOptions& other) { - getFileFromPool = other.getFileFromPool; - needClean = other.needClean; - bytesPerWrite = other.bytesPerWrite; - iops4clean = other.iops4clean; - metaFileSize = other.metaFileSize; - fileSize = other.fileSize; - retryTimes = other.retryTimes; - metaPageSize = other.metaPageSize; - ::memcpy(metaPath, other.metaPath, 256); - ::memcpy(filePoolDir, other.filePoolDir, 256); - } }; typedef struct FilePoolState {