mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 00:32:35 +01:00
ircd::db: Minor interruption point tweaks.
This commit is contained in:
parent
36b4e3cabe
commit
62053e66e2
1 changed files with 4 additions and 4 deletions
|
@ -442,8 +442,8 @@ ircd::db::checkpoint(database &d)
|
||||||
name(d)
|
name(d)
|
||||||
};
|
};
|
||||||
|
|
||||||
const ctx::uninterruptible::nothrow ui;
|
|
||||||
const std::lock_guard<decltype(write_mutex)> lock{write_mutex};
|
const std::lock_guard<decltype(write_mutex)> lock{write_mutex};
|
||||||
|
const ctx::uninterruptible::nothrow ui;
|
||||||
const auto seqnum
|
const auto seqnum
|
||||||
{
|
{
|
||||||
sequence(d)
|
sequence(d)
|
||||||
|
@ -9773,7 +9773,7 @@ ircd::db::seek(database::column &c,
|
||||||
const rocksdb::ReadOptions &opts,
|
const rocksdb::ReadOptions &opts,
|
||||||
std::unique_ptr<rocksdb::Iterator> &it)
|
std::unique_ptr<rocksdb::Iterator> &it)
|
||||||
{
|
{
|
||||||
const ctx::uninterruptible ui;
|
const ctx::uninterruptible::nothrow ui;
|
||||||
|
|
||||||
if(!it)
|
if(!it)
|
||||||
{
|
{
|
||||||
|
@ -9966,7 +9966,6 @@ ircd::db::insert(rocksdb::Cache &cache,
|
||||||
const string_view &key,
|
const string_view &key,
|
||||||
unique_buffer<const_buffer> value)
|
unique_buffer<const_buffer> value)
|
||||||
{
|
{
|
||||||
const ctx::uninterruptible ui;
|
|
||||||
const size_t value_size
|
const size_t value_size
|
||||||
{
|
{
|
||||||
size(value)
|
size(value)
|
||||||
|
@ -10153,7 +10152,8 @@ ircd::db::column_names(const std::string &path,
|
||||||
const rocksdb::DBOptions &opts)
|
const rocksdb::DBOptions &opts)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
const ctx::uninterruptible ui;
|
const ctx::uninterruptible::nothrow ui;
|
||||||
|
|
||||||
std::vector<std::string> ret;
|
std::vector<std::string> ret;
|
||||||
throw_on_error
|
throw_on_error
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue