MCPcopy Create free account
hub / github.com/acl-dev/acl / delete_id

Method delete_id

lib_acl_cpp/src/beanstalk/beanstalk.cpp:526–544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

524}
525
526bool beanstalk::delete_id(unsigned long long id)
527{
528 string cmdline(128);
529 cmdline.format("delete %llu\r\n", id);
530 ACL_ARGV* tokens = beanstalk_request(cmdline);
531 if (tokens == NULL) {
532 logger_error("'%s' error", cmdline.c_str());
533 return false;
534 }
535 if (strcasecmp(tokens->argv[0], "DELETED")) {
536 logger_error("'%s' error %s", cmdline.c_str(), tokens->argv[0]);
537 errbuf_ = tokens->argv[0];
538 acl_argv_free(tokens);
539 return false;
540 }
541
542 acl_argv_free(tokens);
543 return true;
544}
545
546bool beanstalk::release(unsigned long long id, unsigned pri /* = 1024 */,
547 unsigned delay /* = 0*/)

Callers 2

consumerFunction · 0.80
consumerFunction · 0.80

Calls 3

acl_argv_freeFunction · 0.85
formatMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected