Loading .codacy.yaml +3 −0 Original line number Diff line number Diff line Loading @@ -2,3 +2,6 @@ exclude_paths: - 'core/src/index/thirdparty/**' - 'sdk/build-support/**' - 'core/build-support/**' - 'core/src/grpc/gen-milvus/**' - 'core/src/grpc/gen-status/**' - 'sdk/grpc-gen/**' ci/scripts/build.sh +1 −1 Original line number Diff line number Diff line Loading @@ -144,7 +144,7 @@ if [[ ${RUN_CPPLINT} == "ON" ]]; then fi # compile and build make -j8 || exit 1 make -j6 || exit 1 if [[ ${PRIVILEGES} == "ON" ]];then sudo make install || exit 1 Loading core/src/db/DBImpl.cpp +6 −2 Original line number Diff line number Diff line Loading @@ -432,8 +432,12 @@ DBImpl::DropPartition(const std::string& partition_name) { return SHUTDOWN_ERROR; } auto status = mem_mgr_->EraseMemVector(partition_name); // not allow insert status = meta_ptr_->DropPartition(partition_name); // soft delete table mem_mgr_->EraseMemVector(partition_name); // not allow insert auto status = meta_ptr_->DropPartition(partition_name); // soft delete table if (!status.ok()) { ENGINE_LOG_ERROR << status.message(); return status; } // scheduler will determine when to delete table files auto nres = scheduler::ResMgrInst::GetInstance()->GetNumOfComputeResource(); Loading core/src/db/DBImpl.h +1 −1 Original line number Diff line number Diff line Loading @@ -74,7 +74,7 @@ class DBImpl : public DB { PreloadTable(const std::string& table_id) override; Status UpdateTableFlag(const std::string& table_id, int64_t flag); UpdateTableFlag(const std::string& table_id, int64_t flag) override; Status GetTableRowCount(const std::string& table_id, uint64_t& row_count) override; Loading core/src/db/meta/MySQLConnectionPool.h +2 −2 Original line number Diff line number Diff line Loading @@ -24,8 +24,8 @@ namespace meta { class MySQLConnectionPool : public mysqlpp::ConnectionPool { public: // The object's only constructor MySQLConnectionPool(std::string dbName, std::string userName, std::string passWord, std::string serverIp, int port = 0, int maxPoolSize = 8) MySQLConnectionPool(const std::string& dbName, const std::string& userName, const std::string& passWord, const std::string& serverIp, int port = 0, int maxPoolSize = 8) : db_(dbName), user_(userName), password_(passWord), Loading Loading
.codacy.yaml +3 −0 Original line number Diff line number Diff line Loading @@ -2,3 +2,6 @@ exclude_paths: - 'core/src/index/thirdparty/**' - 'sdk/build-support/**' - 'core/build-support/**' - 'core/src/grpc/gen-milvus/**' - 'core/src/grpc/gen-status/**' - 'sdk/grpc-gen/**'
ci/scripts/build.sh +1 −1 Original line number Diff line number Diff line Loading @@ -144,7 +144,7 @@ if [[ ${RUN_CPPLINT} == "ON" ]]; then fi # compile and build make -j8 || exit 1 make -j6 || exit 1 if [[ ${PRIVILEGES} == "ON" ]];then sudo make install || exit 1 Loading
core/src/db/DBImpl.cpp +6 −2 Original line number Diff line number Diff line Loading @@ -432,8 +432,12 @@ DBImpl::DropPartition(const std::string& partition_name) { return SHUTDOWN_ERROR; } auto status = mem_mgr_->EraseMemVector(partition_name); // not allow insert status = meta_ptr_->DropPartition(partition_name); // soft delete table mem_mgr_->EraseMemVector(partition_name); // not allow insert auto status = meta_ptr_->DropPartition(partition_name); // soft delete table if (!status.ok()) { ENGINE_LOG_ERROR << status.message(); return status; } // scheduler will determine when to delete table files auto nres = scheduler::ResMgrInst::GetInstance()->GetNumOfComputeResource(); Loading
core/src/db/DBImpl.h +1 −1 Original line number Diff line number Diff line Loading @@ -74,7 +74,7 @@ class DBImpl : public DB { PreloadTable(const std::string& table_id) override; Status UpdateTableFlag(const std::string& table_id, int64_t flag); UpdateTableFlag(const std::string& table_id, int64_t flag) override; Status GetTableRowCount(const std::string& table_id, uint64_t& row_count) override; Loading
core/src/db/meta/MySQLConnectionPool.h +2 −2 Original line number Diff line number Diff line Loading @@ -24,8 +24,8 @@ namespace meta { class MySQLConnectionPool : public mysqlpp::ConnectionPool { public: // The object's only constructor MySQLConnectionPool(std::string dbName, std::string userName, std::string passWord, std::string serverIp, int port = 0, int maxPoolSize = 8) MySQLConnectionPool(const std::string& dbName, const std::string& userName, const std::string& passWord, const std::string& serverIp, int port = 0, int maxPoolSize = 8) : db_(dbName), user_(userName), password_(passWord), Loading