Skip to content
New issue

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

Switch to FileCache::put_data() from put(name, PutItem). #1033

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions modules/ngap_module/NgapOwnedContainer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ bool NgapOwnedContainer::get_item_from_dmrpp_cache(string &dmrpp_string) const {

bool NgapOwnedContainer::put_item_in_dmrpp_cache(const std::string &dmrpp_string) const
{

#if 0
FileCache::PutItem item(NgapRequestHandler::d_dmrpp_file_cache);
if (NgapRequestHandler::d_dmrpp_file_cache.put(FileCache::hash_key(get_real_name()), item)) {
// Do this in a child thread someday, but what about the return value. jhrg 11/14/23
Expand All @@ -242,8 +242,8 @@ bool NgapOwnedContainer::put_item_in_dmrpp_cache(const std::string &dmrpp_string
return false;
}

#if 0
if (NgapRequestHandler::d_dmrpp_file_cache.put_data(get_real_name(), dmrpp_string)) {
#else
if (NgapRequestHandler::d_dmrpp_file_cache.put_data(FileCache::hash_key(get_real_name()), dmrpp_string)) {
CACHE_LOG(prolog + "File Cache put, DMR++: " + get_real_name() + '\n');
}
else {
Expand Down