Skip to content

Commit

Permalink
Update file_pool.h
Browse files Browse the repository at this point in the history
  • Loading branch information
fansehep committed May 17, 2022
1 parent 87a06ba commit de7a0ca
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions src/chunkserver/datastore/file_pool.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit de7a0ca

Please sign in to comment.