add install cmd

This commit is contained in:
shzhulin3 2021-03-23 11:46:31 +08:00
parent bd282d1d0e
commit 8d4458521d
2 changed files with 7 additions and 3 deletions

View File

@ -10,10 +10,14 @@
安装命令:
git clone https://github.com/gflags/gflags.git
cd gflags
git checkout v2.0
./configure && make && sudo make install
git checkout -b 2.2 v2.2.2
cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_SHARED_LIBS=ON -DGFLAGS_NAMESPACE=google -G "Unix Makefiles" .
make && sudo make install
sudo ldconfig
sudo ln -s /usr/local/lib/libgflags.so.2.2 /lib64
安装后需要将gflags的包含路径添加到你的CPATH环境变量中
5安装rocksdb依赖库zlibbzip2lz4snappyzstandard
sudo yum install -y snappy snappy-devel zlib zlib-devel bzip2 bzip2-devel lz4-devel libasan openssl-devel
'
localdir=`pwd`

View File

@ -309,7 +309,7 @@ int CIndexTableManager::do_insert_intelligent(string key, string doc_id, string
IntelligentInfo info = *iter;
DTC::Result rst;
ret = insert_intelligent_execute(dtcServer, key, doc_id, word, info, rst, doc_version);
if (ret != 0)
if (ret != 0 && ret != -1062) // duplicate is ok
{
log_error("insert request error! ,errno %d ,errmsg %s, errfrom %s\n", ret, rst.ErrorMessage(), rst.ErrorFrom());
return -1;