0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-04 21:08:57 +01:00

ircd::db: Minor interruption point tweaks.

This commit is contained in:
Jason Volk 2018-11-30 17:40:19 -08:00
parent 36b4e3cabe
commit 62053e66e2

View file

@ -442,8 +442,8 @@ ircd::db::checkpoint(database &d)
name(d)
};
const ctx::uninterruptible::nothrow ui;
const std::lock_guard<decltype(write_mutex)> lock{write_mutex};
const ctx::uninterruptible::nothrow ui;
const auto seqnum
{
sequence(d)
@ -9773,7 +9773,7 @@ ircd::db::seek(database::column &c,
const rocksdb::ReadOptions &opts,
std::unique_ptr<rocksdb::Iterator> &it)
{
const ctx::uninterruptible ui;
const ctx::uninterruptible::nothrow ui;
if(!it)
{
@ -9966,7 +9966,6 @@ ircd::db::insert(rocksdb::Cache &cache,
const string_view &key,
unique_buffer<const_buffer> value)
{
const ctx::uninterruptible ui;
const size_t value_size
{
size(value)
@ -10153,7 +10152,8 @@ ircd::db::column_names(const std::string &path,
const rocksdb::DBOptions &opts)
try
{
const ctx::uninterruptible ui;
const ctx::uninterruptible::nothrow ui;
std::vector<std::string> ret;
throw_on_error
{