We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
用tair_client_api�编程,程序运行完毕退出时报错! 代码如下:
#include #include <boost/timer.hpp> #include <boost/progress.hpp> #include <boost/shared_ptr.hpp> #include <boost/scoped_ptr.hpp>
#include "Tair/include/tair_client_api.hpp"
using namespace std; using namespace tair; using namespace boost;
int main() { cout << "Hello World!" << endl;
boost::scoped_ptr<tair_client_api> tair_client(new tair_client_api); tair_client->setup_cache(0); tair_client->set_light_mode(); tair_client->set_thread_count(4); bool bOk = tair_client->startup("192.168.100.160:5198", nullptr, "group_1"); if(LIKELY(bOk)) { data_entry key("k1"); data_entry value("v1"); int ret = 0; boost::progress_timer t; for(int i = 0; i < 10; ++i) { ret = tair_client->put(0, key, value, 0, 0); if(UNLIKELY(ret)) { cout <<"Put Error"<<endl; } } }else { cout << "Tair Start Error"<<endl; } tair_client->flush_mmt(); tair_client->close(); return 0;
}
程序正确运行完毕,退出时报错如下:
The Inferior stopped because it received a signal from the operating system. Signal name :SIGABRT Signal meaning: Aborted
求解! 十分感谢!
The text was updated successfully, but these errors were encountered:
补充: 操作系统:Centos7.4 Tair版本:V3.2.4
Sorry, something went wrong.
问题已经解决,是库的问题。
No branches or pull requests
用tair_client_api�编程,程序运行完毕退出时报错!
代码如下:
#include
#include <boost/timer.hpp>
#include <boost/progress.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/scoped_ptr.hpp>
#include "Tair/include/tair_client_api.hpp"
using namespace std;
using namespace tair;
using namespace boost;
int main()
{
cout << "Hello World!" << endl;
}
程序正确运行完毕,退出时报错如下:
The Inferior stopped because it received a signal from the operating system.
Signal name :SIGABRT
Signal meaning: Aborted
求解!
十分感谢!
The text was updated successfully, but these errors were encountered: