Skip to content

Commit

Permalink
remove vbucket wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
jya-kmu committed Sep 14, 2021
1 parent 5ccbd55 commit 869bf9e
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions wrapper/hermes_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,26 +127,5 @@ void HermesBucketGet(BucketClass *bkt, char *blob_name, size_t page_size,
LOG(ERROR) << "Blob size error: expected to get " << page_size
<< ", but only get " << blob_size << '\n';
}

#if 0
VBucketClass *HermesVBucketCreate(const char *name) {
LOG(INFO) << "Hermes Wrapper: Creating VBucket " << name << '\n';
hermes::api::Context ctx;
try {
hermes::api::VBucket *new_vbucket =
new hermes::api::VBucket(std::string(name), hermes_ptr, ctx);

return (VBucketClass *)new_vbucket;
}
catch (const std::runtime_error& e) {
LOG(ERROR) << "Blob runtime error\n";
return NULL;
}
catch (const std::length_error& e) {
LOG(ERROR) << "Blob length error\n";
return NULL;
}
}
#endif

} // extern "C"

0 comments on commit 869bf9e

Please sign in to comment.