Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
milvus
提交
4e79eaed
milvus
项目概览
BaiXuePrincess
/
milvus
与 Fork 源项目一致
从无法访问的项目Fork
通知
7
Star
4
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
milvus
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4e79eaed
编写于
10月 10, 2019
作者:
G
groot
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
MS-622 Delete vectors should be failed if date range is invalid
Former-commit-id: b8612ac46a6bcdd7ecb15d037c5892e4a67ae592
上级
076d2e9b
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
12 addition
and
8 deletion
+12
-8
cpp/CHANGELOG.md
cpp/CHANGELOG.md
+1
-0
cpp/README.md
cpp/README.md
+6
-3
cpp/src/server/grpc_impl/GrpcRequestTask.cpp
cpp/src/server/grpc_impl/GrpcRequestTask.cpp
+5
-5
未找到文件。
cpp/CHANGELOG.md
浏览文件 @
4e79eaed
...
...
@@ -11,6 +11,7 @@ Please mark all change in change log and use the ticket from JIRA.
-
MS-587 - Count get wrong result after adding vectors and index built immediately
-
MS-599 - search wrong result when table created with metric_type: IP
-
MS-601 - Docker logs error caused by get CPUTemperature error
-
MS-622 - Delete vectors should be failed if date range is invalid
## Improvement
-
MS-552 - Add and change the easylogging library
...
...
cpp/README.md
浏览文件 @
4e79eaed
...
...
@@ -111,12 +111,15 @@ CentOS 7:
$
yum
install
clang
Ubuntu 16.04:
$
sudo
apt-get
install
clang-tidy
$
sudo
su
$
wget
-O
- https://apt.llvm.org/llvm-snapshot.gpg.key |
sudo
apt-key add -
$
sudo
apt-add-repository
"deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main"
$
sudo
apt-get update
$
sudo
apt-get
install
clang-format-6.0
$
apt-add-repository
"deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main"
$
apt-get update
$
apt-get
install
clang-format-6.0
Ubuntu 18.04:
$
sudo
apt-get
install
clang-tidy clang-format
$
rm
cmake_build/CMakeCache.txt
```
```
shell
$
./build.sh
-l
...
...
cpp/src/server/grpc_impl/GrpcRequestTask.cpp
浏览文件 @
4e79eaed
...
...
@@ -42,6 +42,8 @@ static const char* DQL_TASK_GROUP = "dql";
static
const
char
*
DDL_DML_TASK_GROUP
=
"ddl_dml"
;
static
const
char
*
PING_TASK_GROUP
=
"ping"
;
constexpr
int64_t
DAY_SECONDS
=
24
*
60
*
60
;
using
DB_META
=
milvus
::
engine
::
meta
::
Meta
;
using
DB_DATE
=
milvus
::
engine
::
meta
::
DateT
;
...
...
@@ -78,8 +80,6 @@ IndexType(engine::EngineType type) {
return
map_type
[
type
];
}
constexpr
int64_t
DAY_SECONDS
=
24
*
60
*
60
;
Status
ConvertTimeRangeToDBDates
(
const
std
::
vector
<::
milvus
::
grpc
::
Range
>&
range_array
,
std
::
vector
<
DB_DATE
>&
dates
)
{
dates
.
clear
();
...
...
@@ -94,10 +94,10 @@ ConvertTimeRangeToDBDates(const std::vector<::milvus::grpc::Range>& range_array,
return
Status
(
SERVER_INVALID_TIME_RANGE
,
"Invalid time range: "
+
range
.
start_value
());
}
int64_t
days
=
(
tt_end
>
tt_start
)
?
(
tt_end
-
tt_start
)
/
DAY_SECONDS
:
(
tt_start
-
tt_end
)
/
DAY_SECONDS
;
if
(
days
=
=
0
)
{
int64_t
days
=
(
tt_end
-
tt_start
)
/
DAY_SECONDS
;
if
(
days
<
=
0
)
{
return
Status
(
SERVER_INVALID_TIME_RANGE
,
"Invalid time range:
"
+
range
.
start_value
()
+
" to "
+
range
.
end_value
()
);
"Invalid time range:
The start-date should be smaller than end-date!"
);
}
// range: [start_day, end_day)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录