Skip to content

Commit

Permalink
avoid-limestone-unimplemented
Browse files Browse the repository at this point in the history
  • Loading branch information
ban-nobuhiro committed Jan 27, 2025
1 parent 25cd448 commit 7eee749
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/datastore/limestone/limestone_api_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,24 @@ void add_entry(limestone::api::log_channel* lc,
<< ", major write version: " << major_version
<< ", minor write version: " << minor_version
<< shirakami_vecstring(large_objects));
#if 0
lc->add_entry(
storage_id, key, val,
limestone::api::write_version_type(major_version, minor_version),
large_objects);
#else
// avoid limestone-unimplemented
if (large_objects.empty()) {
lc->add_entry(
storage_id, key, val,
limestone::api::write_version_type(major_version, minor_version));
} else {
lc->add_entry(
storage_id, key, val,
limestone::api::write_version_type(major_version, minor_version),
large_objects);
}
#endif
shirakami_log_exit << "log_channel::add_entry()";
}

Expand Down

0 comments on commit 7eee749

Please sign in to comment.