提交 de8811ae 编写于 作者: X Xu Peng

refactor(db): Size


Former-commit-id: 9dc93505e1378a1e8b14750158c2f8b9b2f840ca
上级 27892349
......@@ -413,7 +413,7 @@ Status DBImpl<EngineT>::count(const std::string& table_id, long& result) {
template<typename EngineT>
Status DBImpl<EngineT>::size(long& result) {
return _pMeta->size(result);
return _pMeta->Size(result);
}
template<typename EngineT>
......
......@@ -462,7 +462,7 @@ Status DBMetaImpl::archive_files() {
}
if (criteria == "disk") {
long sum = 0;
size(sum);
Size(sum);
// PXU TODO: refactor size
auto to_delete = (sum - limit*G);
......@@ -473,7 +473,7 @@ Status DBMetaImpl::archive_files() {
return Status::OK();
}
Status DBMetaImpl::size(long& result) {
Status DBMetaImpl::Size(long& result) {
result = 0;
try {
auto selected = ConnectorPtr->select(columns(sum(&TableFileSchema::size)),
......
......@@ -44,7 +44,7 @@ public:
virtual Status archive_files() override;
virtual Status size(long& result) override;
virtual Status Size(long& result) override;
virtual Status cleanup() override;
......
......@@ -42,7 +42,7 @@ public:
virtual Status FilesToMerge(const std::string& table_id,
DatePartionedTableFilesSchema& files) = 0;
virtual Status size(long& result) = 0;
virtual Status Size(long& result) = 0;
virtual Status archive_files() = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册