From c757be1cb638aca3a405bdf8ddfcfa9510117b80 Mon Sep 17 00:00:00 2001 From: Xu Peng Date: Fri, 24 May 2019 10:55:54 +0800 Subject: [PATCH] fix(db): change type from into to size_t Former-commit-id: 97f571c02189eb7cf3ade68f1d26aea2e2ce5f1c --- cpp/src/db/DBMetaImpl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpp/src/db/DBMetaImpl.cpp b/cpp/src/db/DBMetaImpl.cpp index 8341a7a961..2d11379d1a 100644 --- a/cpp/src/db/DBMetaImpl.cpp +++ b/cpp/src/db/DBMetaImpl.cpp @@ -1,4 +1,5 @@ /******************************************************************************* + * long rows = 3*1024*1024*1024; * Copyright 上海赜睿信息科技有限公司(Zilliz) - All Rights Reserved * Unauthorized copying of this file, via any medium is strictly prohibited. * Proprietary and confidential. @@ -480,7 +481,7 @@ Status DBMetaImpl::archive_files() { } } if (criteria == "disk") { - int G = 1024*1024*1024; + size_t G = 1024*1024*1024; long unsigned int sum = 0; try { auto sum_c = ConnectorPtr->sum(